From 42e184926c7bda751454fedda96db19035960e27 Mon Sep 17 00:00:00 2001 From: Aditya Sundaramurthy Date: Thu, 28 Feb 2019 12:01:42 +0100 Subject: [PATCH] Feature/kuberhealthy pod annotations (#11651) * Allow addition of pod annotations Signed-off-by: Aditya Sundaramurthy * document and bump chart Signed-off-by: Aditya Sundaramurthy --- stable/kuberhealthy/Chart.yaml | 2 +- stable/kuberhealthy/README.md | 1 + stable/kuberhealthy/templates/deployment.yaml | 6 ++++++ stable/kuberhealthy/values.yaml | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/kuberhealthy/Chart.yaml b/stable/kuberhealthy/Chart.yaml index 9cfd041701..fd95706996 100644 --- a/stable/kuberhealthy/Chart.yaml +++ b/stable/kuberhealthy/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "v1.0.2" home: https://comcast.github.io/kuberhealthy/ description: The official Helm chart for Kuberhealthy. name: kuberhealthy -version: 1.2.0 +version: 1.2.1 maintainers: - name: integrii email: eric.greer@comcast.com diff --git a/stable/kuberhealthy/README.md b/stable/kuberhealthy/README.md index 24b3cdff0e..61d9357948 100644 --- a/stable/kuberhealthy/README.md +++ b/stable/kuberhealthy/README.md @@ -54,6 +54,7 @@ deployment: maxUnavailable: 1 imagePullPolicy: IfNotPresent namespace: kuberhealthy + podAnnotations: {} # Annotations to be added to pods created by the deployment command: - /app/kuberhealthy # use this to override location of the test-image, see: https://github.com/Comcast/kuberhealthy/blob/master/docs/FLAGS.md diff --git a/stable/kuberhealthy/templates/deployment.yaml b/stable/kuberhealthy/templates/deployment.yaml index 09e0215728..5b798c46fc 100644 --- a/stable/kuberhealthy/templates/deployment.yaml +++ b/stable/kuberhealthy/templates/deployment.yaml @@ -20,6 +20,12 @@ spec: type: RollingUpdate template: metadata: + {{- if .Values.deployment.podAnnotations }} + annotations: + {{- range $key, $value := .Values.deployment.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} labels: app: {{ template "kuberhealthy.name" . }} chart: {{ .Chart.Name }} diff --git a/stable/kuberhealthy/values.yaml b/stable/kuberhealthy/values.yaml index b838f8d9a8..2d9a9081ed 100644 --- a/stable/kuberhealthy/values.yaml +++ b/stable/kuberhealthy/values.yaml @@ -30,6 +30,7 @@ deployment: maxSurge: 0 maxUnavailable: 1 imagePullPolicy: IfNotPresent + podAnnotations: {} command: - /app/kuberhealthy # use this to override location of the test-image, see: https://github.com/Comcast/kuberhealthy/blob/master/docs/FLAGS.md