From ff5962707ce043357d5fb245285416a558cac9c3 Mon Sep 17 00:00:00 2001 From: Chanwit Kaewkasi Date: Fri, 21 Apr 2023 17:30:27 +0000 Subject: [PATCH] [v0.14] add unserved version directive Signed-off-by: Chanwit Kaewkasi --- api/v1alpha2/terraform_types.go | 1 + charts/tf-controller/templates/crds.yaml | 2 +- config/crd/bases/infra.contrib.fluxcd.io_terraforms.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/v1alpha2/terraform_types.go b/api/v1alpha2/terraform_types.go index 4a413a26..6bf7830b 100644 --- a/api/v1alpha2/terraform_types.go +++ b/api/v1alpha2/terraform_types.go @@ -364,6 +364,7 @@ type LockStatus struct { // +kubebuilder:object:root=true // +kubebuilder:resource:shortName=tf // +kubebuilder:subresource:status +// +kubebuilder:unservedversion // +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="" diff --git a/charts/tf-controller/templates/crds.yaml b/charts/tf-controller/templates/crds.yaml index d9ab8e1b..c09501e2 100644 --- a/charts/tf-controller/templates/crds.yaml +++ b/charts/tf-controller/templates/crds.yaml @@ -9842,7 +9842,7 @@ spec: type: object type: object type: object - served: true + served: false storage: false subresources: status: {} diff --git a/config/crd/bases/infra.contrib.fluxcd.io_terraforms.yaml b/config/crd/bases/infra.contrib.fluxcd.io_terraforms.yaml index affe553b..fbbcc477 100644 --- a/config/crd/bases/infra.contrib.fluxcd.io_terraforms.yaml +++ b/config/crd/bases/infra.contrib.fluxcd.io_terraforms.yaml @@ -9839,7 +9839,7 @@ spec: type: object type: object type: object - served: true + served: false storage: false subresources: status: {}