From 3608b0743db3ee3fe31e9b3b01a9bb192c6f56f2 Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Fri, 27 Oct 2023 22:47:08 +0000 Subject: [PATCH] Helm chart support pod annotation --- charts/artifacts/templates/deployment.yaml | 4 ++++ charts/artifacts/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/artifacts/templates/deployment.yaml b/charts/artifacts/templates/deployment.yaml index debe6d9..d3f94c4 100644 --- a/charts/artifacts/templates/deployment.yaml +++ b/charts/artifacts/templates/deployment.yaml @@ -19,6 +19,10 @@ spec: app: {{ template "fullname" $ }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }} {{- if .Values.image.pullSecrets }} diff --git a/charts/artifacts/values.yaml b/charts/artifacts/values.yaml index 2bcff40..76f06e0 100644 --- a/charts/artifacts/values.yaml +++ b/charts/artifacts/values.yaml @@ -7,6 +7,8 @@ nameOverride: "artifacts" ## fullnameOverride allows to change the full name of resources fullnameOverride: +podAnnotations: {} + githubApiBasicAuth: ## githubApiUrl contains the api url to check the auth connection ##