Skip to content

Commit

Permalink
Merge pull request #1443 from a7i/amir/leader-election-namespace-typo
Browse files Browse the repository at this point in the history
fix: helm leader-election typo to `resourceNamespace`
  • Loading branch information
k8s-ci-robot authored Jul 14, 2024
2 parents da862a5 + fc1b543 commit c56a408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions charts/descheduler/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ Leader Election
{{- if .Values.leaderElection.resourceName }}
- --leader-elect-resource-name={{ .Values.leaderElection.resourceName }}
{{- end }}
{{- if .Values.leaderElection.resourceNamescape }}
- --leader-elect-resource-namespace={{ .Values.leaderElection.resourceNamescape }}
{{/* resource namespace value starts with a typo so keeping resourceNamescape for backwards compatibility */}}
{{- $resourceNamespace := default .Values.leaderElection.resourceNamespace .Values.leaderElection.resourceNamescape -}}
{{- if $resourceNamespace -}}
- --leader-elect-resource-namespace={{ $resourceNamespace }}
{{- end -}}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/descheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ leaderElection: {}
# retryPeriod: 2s
# resourceLock: "leases"
# resourceName: "descheduler"
# resourceNamescape: "kube-system"
# resourceNamespace: "kube-system"

command:
- "/bin/descheduler"
Expand Down

0 comments on commit c56a408

Please sign in to comment.