Skip to content

Commit

Permalink
Validate podtemplate for ClusterTopology
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed May 29, 2024
1 parent 46aa4ce commit c914666
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis/kubedb/v1alpha2/clickhouse_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ func (c *ClickHouse) PodLabels(extraLabels ...map[string]string) map[string]stri
return c.offshootLabels(meta_util.OverwriteKeys(c.OffshootSelectors(), extraLabels...), c.Spec.PodTemplate.Labels)
}

func (c *ClickHouse) ClusterPodLabels(petSetName string, labels map[string]string, extraLabels ...map[string]string) map[string]string {
return c.offshootLabels(meta_util.OverwriteKeys(c.OffshootClusterSelectors(petSetName), extraLabels...), labels)
}

func (c *ClickHouse) GetConnectionScheme() string {
scheme := "http"
return scheme
Expand Down

0 comments on commit c914666

Please sign in to comment.