From 090d627087cc92d92c7b5a63ff9c86491990a682 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Sat, 4 May 2024 21:28:56 -0400 Subject: [PATCH] Fix detach in crd typing Used a . accidentally for a separator --- .../controller/crds/deployments.plural.sh_globalservices.yaml | 2 +- .../crds/deployments.plural.sh_managednamespaces.yaml | 2 +- controller/api/v1alpha1/globalservice_types.go | 2 +- .../config/crd/bases/deployments.plural.sh_globalservices.yaml | 2 +- .../crd/bases/deployments.plural.sh_managednamespaces.yaml | 2 +- controller/docs/api.md | 2 +- .../helm/console/crds/deployments.plural.sh_globalservices.yaml | 2 +- .../console/crds/deployments.plural.sh_managednamespaces.yaml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/controller/crds/deployments.plural.sh_globalservices.yaml b/charts/controller/crds/deployments.plural.sh_globalservices.yaml index 40c434ca74..116ed73944 100644 --- a/charts/controller/crds/deployments.plural.sh_globalservices.yaml +++ b/charts/controller/crds/deployments.plural.sh_globalservices.yaml @@ -51,7 +51,7 @@ spec: description: Whether you want to delete owned resources in Plural and in the targeted k8s cluster type: boolean - detach.omitempty: + detach: description: Whether you want to delete owned resources in Plural but leave kubernetes objects in-place type: boolean diff --git a/charts/controller/crds/deployments.plural.sh_managednamespaces.yaml b/charts/controller/crds/deployments.plural.sh_managednamespaces.yaml index 29ca23f640..dad3526dbd 100644 --- a/charts/controller/crds/deployments.plural.sh_managednamespaces.yaml +++ b/charts/controller/crds/deployments.plural.sh_managednamespaces.yaml @@ -51,7 +51,7 @@ spec: description: Whether you want to delete owned resources in Plural and in the targeted k8s cluster type: boolean - detach.omitempty: + detach: description: Whether you want to delete owned resources in Plural but leave kubernetes objects in-place type: boolean diff --git a/controller/api/v1alpha1/globalservice_types.go b/controller/api/v1alpha1/globalservice_types.go index c9493ecb9c..7a8b9e2859 100644 --- a/controller/api/v1alpha1/globalservice_types.go +++ b/controller/api/v1alpha1/globalservice_types.go @@ -31,7 +31,7 @@ func init() { type Cascade struct { // Whether you want to delete owned resources in Plural but leave kubernetes objects in-place // +kubebuilder:validation:Optional - Detach *bool `json:"detach.omitempty"` + Detach *bool `json:"detach,omitempty"` // Whether you want to delete owned resources in Plural and in the targeted k8s cluster // +kubebuilder:validation:Optional diff --git a/controller/config/crd/bases/deployments.plural.sh_globalservices.yaml b/controller/config/crd/bases/deployments.plural.sh_globalservices.yaml index 40c434ca74..116ed73944 100644 --- a/controller/config/crd/bases/deployments.plural.sh_globalservices.yaml +++ b/controller/config/crd/bases/deployments.plural.sh_globalservices.yaml @@ -51,7 +51,7 @@ spec: description: Whether you want to delete owned resources in Plural and in the targeted k8s cluster type: boolean - detach.omitempty: + detach: description: Whether you want to delete owned resources in Plural but leave kubernetes objects in-place type: boolean diff --git a/controller/config/crd/bases/deployments.plural.sh_managednamespaces.yaml b/controller/config/crd/bases/deployments.plural.sh_managednamespaces.yaml index 29ca23f640..dad3526dbd 100644 --- a/controller/config/crd/bases/deployments.plural.sh_managednamespaces.yaml +++ b/controller/config/crd/bases/deployments.plural.sh_managednamespaces.yaml @@ -51,7 +51,7 @@ spec: description: Whether you want to delete owned resources in Plural and in the targeted k8s cluster type: boolean - detach.omitempty: + detach: description: Whether you want to delete owned resources in Plural but leave kubernetes objects in-place type: boolean diff --git a/controller/docs/api.md b/controller/docs/api.md index 491a7762f7..dca3e58db3 100644 --- a/controller/docs/api.md +++ b/controller/docs/api.md @@ -82,7 +82,7 @@ _Appears in:_ | Field | Description | Default | Validation | | --- | --- | --- | --- | -| `detach.omitempty` _boolean_ | Whether you want to delete owned resources in Plural but leave kubernetes objects in-place | | Optional: {}
| +| `detach` _boolean_ | Whether you want to delete owned resources in Plural but leave kubernetes objects in-place | | Optional: {}
| | `delete` _boolean_ | Whether you want to delete owned resources in Plural and in the targeted k8s cluster | | Optional: {}
| diff --git a/plural/helm/console/crds/deployments.plural.sh_globalservices.yaml b/plural/helm/console/crds/deployments.plural.sh_globalservices.yaml index 40c434ca74..116ed73944 100644 --- a/plural/helm/console/crds/deployments.plural.sh_globalservices.yaml +++ b/plural/helm/console/crds/deployments.plural.sh_globalservices.yaml @@ -51,7 +51,7 @@ spec: description: Whether you want to delete owned resources in Plural and in the targeted k8s cluster type: boolean - detach.omitempty: + detach: description: Whether you want to delete owned resources in Plural but leave kubernetes objects in-place type: boolean diff --git a/plural/helm/console/crds/deployments.plural.sh_managednamespaces.yaml b/plural/helm/console/crds/deployments.plural.sh_managednamespaces.yaml index 29ca23f640..dad3526dbd 100644 --- a/plural/helm/console/crds/deployments.plural.sh_managednamespaces.yaml +++ b/plural/helm/console/crds/deployments.plural.sh_managednamespaces.yaml @@ -51,7 +51,7 @@ spec: description: Whether you want to delete owned resources in Plural and in the targeted k8s cluster type: boolean - detach.omitempty: + detach: description: Whether you want to delete owned resources in Plural but leave kubernetes objects in-place type: boolean