Add 'ready', 'status' and 'age' columns to CRD

This commit is contained in:
Hidde Beydals 2020-07-13 12:02:15 +02:00
parent 3d64a0b644
commit ec96ae2ba6
2 changed files with 13 additions and 0 deletions

View File

@ -504,6 +504,9 @@ const (
// +genclient:Namespaced
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
// HelmRelease is the Schema for the helmreleases API
type HelmRelease struct {

View File

@ -8,6 +8,16 @@ metadata:
creationTimestamp: null
name: helmreleases.helm.fluxcd.io
spec:
additionalPrinterColumns:
- JSONPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- JSONPath: .status.conditions[?(@.type=="Ready")].message
name: Status
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: helm.fluxcd.io
names:
kind: HelmRelease