Add 'ready', 'status' and 'age' columns to CRD
This commit is contained in:
parent
3d64a0b644
commit
ec96ae2ba6
|
|
@ -504,6 +504,9 @@ const (
|
||||||
// +genclient:Namespaced
|
// +genclient:Namespaced
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
// +kubebuilder:subresource:status
|
// +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
|
// HelmRelease is the Schema for the helmreleases API
|
||||||
type HelmRelease struct {
|
type HelmRelease struct {
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,16 @@ metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: helmreleases.helm.fluxcd.io
|
name: helmreleases.helm.fluxcd.io
|
||||||
spec:
|
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
|
group: helm.fluxcd.io
|
||||||
names:
|
names:
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue