From 82c5b94a56b0684714762ea998b001af7aee4018 Mon Sep 17 00:00:00 2001 From: tchiotludo Date: Wed, 27 Oct 2021 09:16:31 +0200 Subject: [PATCH] fix(helm): replace image.annotation to podAnnotations & add podLabels close #884 --- helm/akhq/templates/deployment.yaml | 5 ++++- helm/akhq/values.yaml | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/helm/akhq/templates/deployment.yaml b/helm/akhq/templates/deployment.yaml index d3e4f1ced..b6acb36a4 100644 --- a/helm/akhq/templates/deployment.yaml +++ b/helm/akhq/templates/deployment.yaml @@ -29,12 +29,15 @@ spec: {{- if and (not .Values.existingSecret) (.Values.secrets) }} checksum/secrets: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- end }} - {{- with .Values.image.annotations }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: app.kubernetes.io/name: {{ include "akhq.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: diff --git a/helm/akhq/values.yaml b/helm/akhq/values.yaml index 9ceeada6b..f1a03d645 100644 --- a/helm/akhq/values.yaml +++ b/helm/akhq/values.yaml @@ -10,9 +10,13 @@ annotations: {} #prometheus.io/port: '8080' #prometheus.io/path: '/prometheus' +podAnnotations: {} + # custom labels labels: {} - # custom.label: 'true + # custom.label: 'true' + +podLabels: {} ## You can put directly your configuration here... or add java opts or any other env vars extraEnv: []