Skip to content

Commit

Permalink
fix: ensure labels on serverlb
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Feb 1, 2022
1 parent 33bcd4d commit fdd4dae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,12 @@ ClusterCreatOpts:
cluster.ServerLoadBalancer.Config = &lbConfig
}

// ensure labels
cluster.ServerLoadBalancer.Node.FillRuntimeLabels()
for k, v := range clusterCreateOpts.GlobalLabels {
cluster.ServerLoadBalancer.Node.RuntimeLabels[k] = v
}

// prepare to write config to lb container
configyaml, err := yaml.Marshal(cluster.ServerLoadBalancer.Config)
if err != nil {
Expand Down

0 comments on commit fdd4dae

Please sign in to comment.