From 3ae837b4b0af05546a590bc733a1c1189bcc000f Mon Sep 17 00:00:00 2001 From: Alessandro Vozza Date: Sun, 11 Oct 2020 12:14:36 +0200 Subject: [PATCH] fix podAnnotations quotes for #6315 bumped chart version, daemonset podannotations missing end on podannotations ci values files new lines at the end of files --- charts/ingress-nginx/Chart.yaml | 2 +- .../ci/daemonset-podannotations-values.yaml | 13 +++++++++++++ .../ci/deployment-podannotations-values.yaml | 12 ++++++++++++ .../templates/controller-daemonset.yaml | 5 ++++- .../templates/controller-deployment.yaml | 7 +++++-- 5 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 charts/ingress-nginx/ci/daemonset-podannotations-values.yaml create mode 100644 charts/ingress-nginx/ci/deployment-podannotations-values.yaml diff --git a/charts/ingress-nginx/Chart.yaml b/charts/ingress-nginx/Chart.yaml index 04b1b032d..764e7632f 100644 --- a/charts/ingress-nginx/Chart.yaml +++ b/charts/ingress-nginx/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: ingress-nginx -version: 3.6.0 +version: 3.7.0 appVersion: 0.40.2 home: https://github.com/kubernetes/ingress-nginx description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer diff --git a/charts/ingress-nginx/ci/daemonset-podannotations-values.yaml b/charts/ingress-nginx/ci/daemonset-podannotations-values.yaml new file mode 100644 index 000000000..04ac58dbd --- /dev/null +++ b/charts/ingress-nginx/ci/daemonset-podannotations-values.yaml @@ -0,0 +1,13 @@ +controller: + kind: DaemonSet + admissionWebhooks: + enabled: false + metrics: + enabled: true + service: + type: ClusterIP + podAnnotations: + prometheus.io/path: /metrics + prometheus.io/port: "10254" + prometheus.io/scheme: http + prometheus.io/scrape: "true" diff --git a/charts/ingress-nginx/ci/deployment-podannotations-values.yaml b/charts/ingress-nginx/ci/deployment-podannotations-values.yaml new file mode 100644 index 000000000..b65a0910b --- /dev/null +++ b/charts/ingress-nginx/ci/deployment-podannotations-values.yaml @@ -0,0 +1,12 @@ +controller: + admissionWebhooks: + enabled: false + metrics: + enabled: true + service: + type: ClusterIP + podAnnotations: + prometheus.io/path: /metrics + prometheus.io/port: "10254" + prometheus.io/scheme: http + prometheus.io/scrape: "true" diff --git a/charts/ingress-nginx/templates/controller-daemonset.yaml b/charts/ingress-nginx/templates/controller-daemonset.yaml index 059e8172f..46802ec93 100644 --- a/charts/ingress-nginx/templates/controller-daemonset.yaml +++ b/charts/ingress-nginx/templates/controller-daemonset.yaml @@ -26,7 +26,10 @@ spec: template: metadata: {{- if .Values.controller.podAnnotations }} - annotations: {{ toYaml .Values.controller.podAnnotations | nindent 8 }} + annotations: + {{- range $key, $value := .Values.controller.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} {{- end }} labels: {{- include "ingress-nginx.selectorLabels" . | nindent 8 }} diff --git a/charts/ingress-nginx/templates/controller-deployment.yaml b/charts/ingress-nginx/templates/controller-deployment.yaml index b7f7dcb77..5b9162b74 100644 --- a/charts/ingress-nginx/templates/controller-deployment.yaml +++ b/charts/ingress-nginx/templates/controller-deployment.yaml @@ -30,7 +30,10 @@ spec: template: metadata: {{- if .Values.controller.podAnnotations }} - annotations: {{ toYaml .Values.controller.podAnnotations | nindent 8 }} + annotations: + {{- range $key, $value := .Values.controller.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} {{- end }} labels: {{- include "ingress-nginx.selectorLabels" . | nindent 8 }} @@ -253,4 +256,4 @@ spec: {{ toYaml .Values.controller.extraVolumes | nindent 8 }} {{- end }} {{- end }} -{{- end }} +{{- end }} \ No newline at end of file