diff --git a/apis/kubedb/v1alpha2/constants.go b/apis/kubedb/v1alpha2/constants.go index b67de1dd06..a96cabaee7 100644 --- a/apis/kubedb/v1alpha2/constants.go +++ b/apis/kubedb/v1alpha2/constants.go @@ -334,8 +334,8 @@ const ( DatabasePodMaster = "Master" DatabasePodAggregator = "Aggregator" DatabasePodLeaf = "Leaf" - StatefulSetTypeAggregator = "aggregator" - StatefulSetTypeLeaf = "leaf" + PetSetTypeAggregator = "aggregator" + PetSetTypeLeaf = "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 e8036e6479..1859319238 100644 --- a/apis/kubedb/v1alpha2/singlestore_helpers.go +++ b/apis/kubedb/v1alpha2/singlestore_helpers.go @@ -189,20 +189,20 @@ func (s *Singlestore) PVCName(alias string) string { // return s.OffshootName() } -func (s *Singlestore) AggregatorStatefulSet() string { - sts := s.OffshootName() +func (s *Singlestore) AggregatorPetSet() string { + ps := s.OffshootName() if s.Spec.Topology.Aggregator.Suffix != "" { - sts = metautil.NameWithSuffix(sts, s.Spec.Topology.Aggregator.Suffix) + ps = metautil.NameWithSuffix(ps, s.Spec.Topology.Aggregator.Suffix) } - return metautil.NameWithSuffix(sts, StatefulSetTypeAggregator) + return metautil.NameWithSuffix(ps, PetSetTypeAggregator) } -func (s *Singlestore) LeafStatefulSet() string { - sts := s.OffshootName() +func (s *Singlestore) LeafPetSet() string { + ps := s.OffshootName() if s.Spec.Topology.Leaf.Suffix != "" { - sts = metautil.NameWithSuffix(sts, s.Spec.Topology.Leaf.Suffix) + ps = metautil.NameWithSuffix(ps, s.Spec.Topology.Leaf.Suffix) } - return metautil.NameWithSuffix(sts, StatefulSetTypeLeaf) + return metautil.NameWithSuffix(ps, PetSetTypeLeaf) } func (s *Singlestore) PodLabels(extraLabels ...map[string]string) map[string]string {