Skip to content

Commit

Permalink
fix: helm leader-election typo to resourceNamespace
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
  • Loading branch information
a7i committed Jun 19, 2024
1 parent 2df11f8 commit 65e121a
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 @@ -87,8 +87,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 }}
{{- if .Values.leaderElection.resourceNamespace }}
- --leader-elect-resource-namespace={{ .Values.leaderElection.resourceNamespace }}
{{- else if .Values.leaderElection.resourceNamescape }}
{{- fail "'leaderElection.resourceNamescape' is deprecated. instead use 'leaderElection.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 @@ -70,7 +70,7 @@ leaderElection: {}
# retryPeriod: 2s
# resourceLock: "leases"
# resourceName: "descheduler"
# resourceNamescape: "kube-system"
# resourceNamespace: "kube-system"

command:
- "/bin/descheduler"
Expand Down

0 comments on commit 65e121a

Please sign in to comment.