Skip to content

Commit 681556d

Browse files
soneillf5nginx-bot
andauthored
Add pod labels to helm chart (#1884)
Co-authored-by: nginx-bot <[email protected]>
1 parent f7d3e81 commit 681556d

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

deployments/helm-chart/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Parameter | Description | Default
214214
`controller.reportIngressStatus.leaderElectionLockName` | Specifies the name of the ConfigMap, within the same namespace as the controller, used as the lock for leader election. controller.reportIngressStatus.enableLeaderElection must be set to true. | Autogenerated
215215
`controller.reportIngressStatus.annotations` | The annotations of the leader election configmap. | {}
216216
`controller.pod.annotations` | The annotations of the Ingress Controller pod. | {}
217+
`controller.pod.extraLabels` | The additional extra labels of the Ingress Controller pod. | {}
217218
`controller.appprotect.enable` | Enables the App Protect module in the Ingress Controller. | false
218219
`controller.readyStatus.enable` | Enables the readiness endpoint `"/nginx-ready"`. The endpoint returns a success code when NGINX has loaded all the config after the startup. This also configures a readiness probe for the Ingress Controller pods that uses the readiness endpoint. | true
219220
`controller.readyStatus.port` | The HTTP port for the readiness endpoint. | 8081

deployments/helm-chart/templates/controller-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ spec:
1414
metadata:
1515
labels:
1616
app: {{ include "nginx-ingress.appName" . }}
17+
{{- if .Values.controller.pod.extraLabels }}
18+
{{ toYaml .Values.controller.pod.extraLabels | indent 8 }}
19+
{{- end }}
1720
{{- if or (.Values.prometheus.create) (.Values.controller.pod.annotations) }}
1821
annotations:
1922
{{- if .Values.prometheus.create }}

deployments/helm-chart/templates/controller-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ spec:
1515
metadata:
1616
labels:
1717
app: {{ include "nginx-ingress.appName" . }}
18+
{{- if .Values.controller.pod.extraLabels }}
19+
{{ toYaml .Values.controller.pod.extraLabels | indent 8 }}
20+
{{- end }}
1821
{{- if or (.Values.prometheus.create) (.Values.controller.pod.annotations) }}
1922
annotations:
2023
{{- if .Values.prometheus.create }}

deployments/helm-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ controller:
274274
## The annotations of the Ingress Controller pod.
275275
annotations: {}
276276

277+
## The additional extra labels of the Ingress Controller pod.
278+
extraLabels: {}
279+
277280
## The PriorityClass of the ingress controller pods.
278281
priorityClassName:
279282

0 commit comments

Comments
 (0)