From c367066eeb99e5b94fa944715abb6d4b8a7ed919 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Wed, 27 Nov 2024 11:56:00 +0100 Subject: [PATCH] CRD: Print `state`. --- sdk/api/v1alpha1/release.go | 1 + sdk/config/crd/bases/release.giantswarm.io_releases.yaml | 4 ++++ ...stomresourcedefinition_releases.release.giantswarm.io.yaml | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/sdk/api/v1alpha1/release.go b/sdk/api/v1alpha1/release.go index ef6361c7c..d6d20b02f 100644 --- a/sdk/api/v1alpha1/release.go +++ b/sdk/api/v1alpha1/release.go @@ -26,6 +26,7 @@ func (r ReleaseState) String() string { // +kubebuilder:printcolumn:name="Kubernetes version",type=string,JSONPath=`.spec.components[?(@.name=="kubernetes")].version`,description="Kubernetes version in this release" // +kubebuilder:printcolumn:name="Flatcar version",type=string,JSONPath=`.spec.components[?(@.name=="flatcar")].version`,description="Flatcar version in this release" // +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.spec.date`,description="Time since release creation" +// +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.spec.state`,description="State of this release" // +kubebuilder:printcolumn:name="Release notes",type=string,JSONPath=`.metadata.annotations['giantswarm\.io/release-notes']`,priority=1,description="Release notes for this release" // +kubebuilder:resource:scope=Cluster,categories=common;giantswarm diff --git a/sdk/config/crd/bases/release.giantswarm.io_releases.yaml b/sdk/config/crd/bases/release.giantswarm.io_releases.yaml index 6162a9a2a..7ec22b338 100644 --- a/sdk/config/crd/bases/release.giantswarm.io_releases.yaml +++ b/sdk/config/crd/bases/release.giantswarm.io_releases.yaml @@ -30,6 +30,10 @@ spec: jsonPath: .spec.date name: Age type: date + - description: State of this release + jsonPath: .spec.state + name: State + type: string - description: Release notes for this release jsonPath: .metadata.annotations['giantswarm\.io/release-notes'] name: Release notes diff --git a/sdk/manifests/apiextensions.k8s.io_v1_customresourcedefinition_releases.release.giantswarm.io.yaml b/sdk/manifests/apiextensions.k8s.io_v1_customresourcedefinition_releases.release.giantswarm.io.yaml index 3b9f82ffb..91dd4319c 100644 --- a/sdk/manifests/apiextensions.k8s.io_v1_customresourcedefinition_releases.release.giantswarm.io.yaml +++ b/sdk/manifests/apiextensions.k8s.io_v1_customresourcedefinition_releases.release.giantswarm.io.yaml @@ -29,6 +29,10 @@ spec: jsonPath: .spec.date name: Age type: date + - description: State of this release + jsonPath: .spec.state + name: State + type: string - description: Release notes for this release jsonPath: .metadata.annotations['giantswarm\.io/release-notes'] name: Release notes