Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Add a matchLabels selector to stateful sets as well
Browse files Browse the repository at this point in the history
This is required to work around
helm/charts#7726
  • Loading branch information
aduffeck committed Oct 12, 2018
1 parent 2207d3b commit 350a940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kube/stateful_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func NewStatefulSet(role *model.InstanceGroup, settings ExportSettings, grapher

spec := helm.NewMapping()
spec.Add("serviceName", fmt.Sprintf("%s-set", role.Name))
spec.Add("selector", newSelector(role.Name))
spec.Add("template", podTemplate)
// "updateStrategy" is new in kube 1.7, so we don't add anything to non-helm configs
// The default behaviour is "OnDelete"
Expand Down

0 comments on commit 350a940

Please sign in to comment.