Skip to content

[Bug]: Typo in templates/controller-lease.yaml #7179

@atombrella

Description

@atombrella

Version

edge

What Kubernetes platforms are you running on?

AKS Azure

Steps to reproduce

This file has a typo. It was introduced in Release 3.7. annotations misses the last :, which causes Helm to stop working when upgrading from an older release.

https://github.com/nginx/kubernetes-ingress/blob/main/charts/nginx-ingress/templates/controller-lease.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 }}

Can you please fix it?

Metadata

Metadata

Assignees

Labels

bugAn issue reporting a potential bug

Type

No type

Projects

Status

Done 🚀

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions