From 9d4c58e08fe3f38c709fd1e0270b9ae912236dbd Mon Sep 17 00:00:00 2001 From: Rory Z <16801068+Rory-Z@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:20:31 +0800 Subject: [PATCH] fix: fix enum typo error Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com> --- apis/apps/v2beta1/emqx_types.go | 2 +- config/crd/bases/apps.emqx.io_emqxes.yaml | 4 ++-- .../emqx-operator/templates/crd.emqxes.apps.emqx.io.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apis/apps/v2beta1/emqx_types.go b/apis/apps/v2beta1/emqx_types.go index 5239a72c6..1d1e65218 100644 --- a/apis/apps/v2beta1/emqx_types.go +++ b/apis/apps/v2beta1/emqx_types.go @@ -100,7 +100,7 @@ type BootstrapAPIKey struct { } type Config struct { - //+kubebuilder:validation:Enum=merge;replace + //+kubebuilder:validation:Enum=Merge;Replace //+kubebuilder:default=merge Mode string `json:"mode,omitempty"` // EMQX config, HOCON format, like etc/emqx.conf file diff --git a/config/crd/bases/apps.emqx.io_emqxes.yaml b/config/crd/bases/apps.emqx.io_emqxes.yaml index a31dd4521..08311b356 100644 --- a/config/crd/bases/apps.emqx.io_emqxes.yaml +++ b/config/crd/bases/apps.emqx.io_emqxes.yaml @@ -6507,8 +6507,8 @@ spec: mode: default: merge enum: - - merge - - replace + - Merge + - Replace type: string type: object coreTemplate: diff --git a/deploy/charts/emqx-operator/templates/crd.emqxes.apps.emqx.io.yaml b/deploy/charts/emqx-operator/templates/crd.emqxes.apps.emqx.io.yaml index d75ccbe36..1f297de69 100644 --- a/deploy/charts/emqx-operator/templates/crd.emqxes.apps.emqx.io.yaml +++ b/deploy/charts/emqx-operator/templates/crd.emqxes.apps.emqx.io.yaml @@ -6519,8 +6519,8 @@ spec: mode: default: merge enum: - - merge - - replace + - Merge + - Replace type: string type: object coreTemplate: