Skip to content

Commit ddba993

Browse files
authored
Merge pull request #6316 from ams0/master
Numerals in podAnnotations in quotes #6315
2 parents dc120bb + 3ae837b commit ddba993

5 files changed

+35
-4
lines changed

charts/ingress-nginx/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: ingress-nginx
3-
version: 3.6.0
3+
version: 3.7.0
44
appVersion: 0.40.2
55
home: https://github.com/kubernetes/ingress-nginx
66
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
controller:
2+
kind: DaemonSet
3+
admissionWebhooks:
4+
enabled: false
5+
metrics:
6+
enabled: true
7+
service:
8+
type: ClusterIP
9+
podAnnotations:
10+
prometheus.io/path: /metrics
11+
prometheus.io/port: "10254"
12+
prometheus.io/scheme: http
13+
prometheus.io/scrape: "true"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
controller:
2+
admissionWebhooks:
3+
enabled: false
4+
metrics:
5+
enabled: true
6+
service:
7+
type: ClusterIP
8+
podAnnotations:
9+
prometheus.io/path: /metrics
10+
prometheus.io/port: "10254"
11+
prometheus.io/scheme: http
12+
prometheus.io/scrape: "true"

charts/ingress-nginx/templates/controller-daemonset.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ spec:
2626
template:
2727
metadata:
2828
{{- if .Values.controller.podAnnotations }}
29-
annotations: {{ toYaml .Values.controller.podAnnotations | nindent 8 }}
29+
annotations:
30+
{{- range $key, $value := .Values.controller.podAnnotations }}
31+
{{ $key }}: {{ $value | quote }}
32+
{{- end }}
3033
{{- end }}
3134
labels:
3235
{{- include "ingress-nginx.selectorLabels" . | nindent 8 }}

charts/ingress-nginx/templates/controller-deployment.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ spec:
3030
template:
3131
metadata:
3232
{{- if .Values.controller.podAnnotations }}
33-
annotations: {{ toYaml .Values.controller.podAnnotations | nindent 8 }}
33+
annotations:
34+
{{- range $key, $value := .Values.controller.podAnnotations }}
35+
{{ $key }}: {{ $value | quote }}
36+
{{- end }}
3437
{{- end }}
3538
labels:
3639
{{- include "ingress-nginx.selectorLabels" . | nindent 8 }}
@@ -253,4 +256,4 @@ spec:
253256
{{ toYaml .Values.controller.extraVolumes | nindent 8 }}
254257
{{- end }}
255258
{{- end }}
256-
{{- end }}
259+
{{- end }}

0 commit comments

Comments
 (0)