-
Notifications
You must be signed in to change notification settings - Fork 2k
Move logic for -enable-leader-election
flag in helm templates
#3475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
-enable-leader-election
flag in helm templates
Codecov Report
@@ Coverage Diff @@
## main #3475 +/- ##
==========================================
+ Coverage 51.95% 51.99% +0.04%
==========================================
Files 60 60
Lines 16797 16811 +14
==========================================
+ Hits 8727 8741 +14
Misses 7775 7775
Partials 295 295
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to modify deployments/helm-chart/templates/controller-leader-election-configmap.yaml
as well so that file is only created when the leader election is set to true.
e.g.
{{- if .Values.controller.reportIngressStatus.enableLeaderElection }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "nginx-ingress.leaderElectionName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "nginx-ingress.labels" . | nindent 4 }}
{{- if .Values.controller.reportIngressStatus.annotations }}
annotations:
{{ toYaml .Values.controller.reportIngressStatus.annotations | indent 4 }}
{{- end }}
{{- end }}
Proposed changes
This change ensures the
-enable-leader-election
flag it set tofalse
whencontroller.reportIngressStatus.enable
is set to false.Closes #3455
Checklist
Before creating a PR, run through this checklist and mark each as complete.