Skip to content

Commit

Permalink
Update helpers
Browse files Browse the repository at this point in the history
Signed-off-by: pritamdas99 <[email protected]>
  • Loading branch information
pritamdas99 committed Nov 7, 2024
1 parent 0ebee95 commit 0d801d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/kubedb/v1alpha2/solr_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,15 @@ func (s Solr) NodeRoleSpecificLabelKey(roleType SolrNodeRoleType) string {
}

func (s Solr) OverseerSelectors() map[string]string {
return s.OffshootSelectors(map[string]string{s.NodeRoleSpecificLabelKey(SolrNodeRoleOverseer): SolrNodeRoleSet})
return s.OffshootSelectors(map[string]string{string(SolrNodeRoleOverseer): SolrNodeRoleSet})
}

func (s Solr) DataSelectors() map[string]string {
return s.OffshootSelectors(map[string]string{s.NodeRoleSpecificLabelKey(SolrNodeRoleData): SolrNodeRoleSet})
return s.OffshootSelectors(map[string]string{string(SolrNodeRoleData): SolrNodeRoleSet})
}

func (s Solr) CoordinatorSelectors() map[string]string {
return s.OffshootSelectors(map[string]string{s.NodeRoleSpecificLabelKey(SolrNodeRoleCoordinator): SolrNodeRoleSet})
return s.OffshootSelectors(map[string]string{string(SolrNodeRoleCoordinator): SolrNodeRoleSet})
}

func (s *Solr) SetDefaults() {
Expand Down

0 comments on commit 0d801d5

Please sign in to comment.