From 59e510e4696561f47b4638c6398b38877de49e44 Mon Sep 17 00:00:00 2001 From: Ashraful Haque Tani Date: Mon, 18 Nov 2024 12:28:58 +0600 Subject: [PATCH] update Signed-off-by: Ashraful Haque Tani --- apis/kubedb/v1/mysql_types.go | 2 +- apis/kubedb/v1alpha2/mysql_types.go | 2 +- crds/_.yaml | 13 +++++++++++++ crds/kubedb.com_mysqls.yaml | 4 ++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 crds/_.yaml diff --git a/apis/kubedb/v1/mysql_types.go b/apis/kubedb/v1/mysql_types.go index 04e51b6783..9b3ddcb1a2 100644 --- a/apis/kubedb/v1/mysql_types.go +++ b/apis/kubedb/v1/mysql_types.go @@ -41,7 +41,7 @@ const ( MySQLModeSemiSync MySQLMode = "SemiSync" ) -// +kubebuilder:validation:Enum=Single-Primary +// +kubebuilder:validation:Enum=Single-Primary;Multi-Primary type MySQLGroupMode string const ( diff --git a/apis/kubedb/v1alpha2/mysql_types.go b/apis/kubedb/v1alpha2/mysql_types.go index 8a01797793..2085a58e49 100644 --- a/apis/kubedb/v1alpha2/mysql_types.go +++ b/apis/kubedb/v1alpha2/mysql_types.go @@ -41,7 +41,7 @@ const ( MySQLModeSemiSync MySQLMode = "SemiSync" ) -// +kubebuilder:validation:Enum=Single-Primary +// +kubebuilder:validation:Enum=Single-Primary;Multi-Primary type MySQLGroupMode string const ( diff --git a/crds/_.yaml b/crds/_.yaml new file mode 100644 index 0000000000..702d6cea64 --- /dev/null +++ b/crds/_.yaml @@ -0,0 +1,13 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb +spec: + group: "" + names: + kind: "" + plural: "" + scope: "" + versions: null diff --git a/crds/kubedb.com_mysqls.yaml b/crds/kubedb.com_mysqls.yaml index d6c74e1f05..54425a75d5 100644 --- a/crds/kubedb.com_mysqls.yaml +++ b/crds/kubedb.com_mysqls.yaml @@ -4815,6 +4815,7 @@ spec: default: Single-Primary enum: - Single-Primary + - Multi-Primary type: string name: type: string @@ -4825,6 +4826,7 @@ spec: default: Single-Primary enum: - Single-Primary + - Multi-Primary type: string router: properties: @@ -12478,6 +12480,7 @@ spec: default: Single-Primary enum: - Single-Primary + - Multi-Primary type: string name: type: string @@ -12488,6 +12491,7 @@ spec: default: Single-Primary enum: - Single-Primary + - Multi-Primary type: string router: properties: