Add 'ready', 'status' and 'age' columns to CRD
This commit is contained in:
parent
3d64a0b644
commit
ec96ae2ba6
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue