Skip to content

Commit

Permalink
= not :
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Oct 20, 2023
1 parent 8d7b105 commit d184198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/helmvm/node_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ func getRoleNodeLabels(ctx context.Context, client kubernetes.Interface, role st
// one label will be the number of roles, and then deterministic label names will be used to store the role names
func getRoleListLabels(roles []string) []string {
toReturn := []string{}
toReturn = append(toReturn, fmt.Sprintf("%s:total-%d", types.EMBEDDED_CLUSTER_ROLE_LABEL, len(roles)))
toReturn = append(toReturn, fmt.Sprintf("%s=total-%d", types.EMBEDDED_CLUSTER_ROLE_LABEL, len(roles)))

for idx, role := range roles {
toReturn = append(toReturn, fmt.Sprintf("%s-%d:%s", types.EMBEDDED_CLUSTER_ROLE_LABEL, idx, role))
toReturn = append(toReturn, fmt.Sprintf("%s-%d=%s", types.EMBEDDED_CLUSTER_ROLE_LABEL, idx, role))
}

return toReturn
Expand Down

0 comments on commit d184198

Please sign in to comment.