From bd9cd6f3ab9fa264949c666cd4931bb653514cf0 Mon Sep 17 00:00:00 2001 From: Alejandro Recalde Date: Wed, 9 Aug 2023 14:27:38 -0300 Subject: [PATCH] Fix mysql provider config spec.tls kubebuilder validation enum (#138) Signed-off-by: Alejandro Recalde --- apis/mysql/v1alpha1/provider_types.go | 2 +- package/crds/mysql.sql.crossplane.io_providerconfigs.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/mysql/v1alpha1/provider_types.go b/apis/mysql/v1alpha1/provider_types.go index f38f6870..b193f657 100644 --- a/apis/mysql/v1alpha1/provider_types.go +++ b/apis/mysql/v1alpha1/provider_types.go @@ -31,7 +31,7 @@ type ProviderConfigSpec struct { // or use preferred to use TLS only when advertised by the server. This is similar // to skip-verify, but additionally allows a fallback to a connection which is // not encrypted. Neither skip-verify nor preferred add any reliable security. - // +kubebuilder:validation:Enum=true;skip-verify;preferred + // +kubebuilder:validation:Enum="true";skip-verify;preferred // +optional TLS *string `json:"tls"` } diff --git a/package/crds/mysql.sql.crossplane.io_providerconfigs.yaml b/package/crds/mysql.sql.crossplane.io_providerconfigs.yaml index a01c0181..0a8c39ae 100644 --- a/package/crds/mysql.sql.crossplane.io_providerconfigs.yaml +++ b/package/crds/mysql.sql.crossplane.io_providerconfigs.yaml @@ -81,7 +81,7 @@ spec: allows a fallback to a connection which is not encrypted. Neither skip-verify nor preferred add any reliable security. enum: - - true + - "true" - skip-verify - preferred type: string