From 47f8aa5a3bb8445944288854971b143f46ef5aab Mon Sep 17 00:00:00 2001 From: ashraful Date: Thu, 8 Feb 2024 10:26:57 +0600 Subject: [PATCH] Fix SingleStore SatafulSet Name Signed-off-by: ashraful --- apis/kubedb/v1alpha2/constants.go | 2 +- apis/kubedb/v1alpha2/singlestore_helpers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/kubedb/v1alpha2/constants.go b/apis/kubedb/v1alpha2/constants.go index b7750950d8..39d0b7f0b4 100644 --- a/apis/kubedb/v1alpha2/constants.go +++ b/apis/kubedb/v1alpha2/constants.go @@ -331,7 +331,7 @@ const ( DatabasePodMaster = "Master" DatabasePodAggregator = "Aggregator" DatabasePodLeaf = "Leaf" - StatefulSetTypeMasterAggregator = "master-aggregator" + StatefulSetTypAggregator = "aggregator" StatefulSetTypeLeaf = "leaf" SinglestoreDatabaseHealth = "singlestore_health" SinglestoreTableHealth = "singlestore_health_table" diff --git a/apis/kubedb/v1alpha2/singlestore_helpers.go b/apis/kubedb/v1alpha2/singlestore_helpers.go index 9d41bb822b..29044aa0bf 100644 --- a/apis/kubedb/v1alpha2/singlestore_helpers.go +++ b/apis/kubedb/v1alpha2/singlestore_helpers.go @@ -151,7 +151,7 @@ func (s *Singlestore) PVCName(alias string) string { } func (s *Singlestore) AggregatorStatefulSet() string { - return metautil.NameWithSuffix(s.OffshootName(), StatefulSetTypeMasterAggregator) + return metautil.NameWithSuffix(s.OffshootName(), StatefulSetTypAggregator) } func (s *Singlestore) LeafStatefulSet() string {