14 lines
461 B
YAML
14 lines
461 B
YAML
{{ if .Values.controller.reportIngressStatus.enableLeaderElection }}
|
|
apiVersion: coordination.k8s.io/v1
|
|
kind: Lease
|
|
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 }}
|