From 92c61b075a9bbca94db964a3a519d39a29aaa896 Mon Sep 17 00:00:00 2001 From: Michael Lin Date: Tue, 15 Jun 2021 09:57:11 -0600 Subject: [PATCH] feat(pontoon): improve custom pod annotations --- charts/pontoon/Chart.yaml | 2 +- charts/pontoon/templates/pontoon-migration-job.yaml | 6 ++++++ charts/pontoon/templates/pontoon-sync-projects-cronjob.yaml | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/charts/pontoon/Chart.yaml b/charts/pontoon/Chart.yaml index eed0a93..5fe1984 100644 --- a/charts/pontoon/Chart.yaml +++ b/charts/pontoon/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: pontoon home: https://github.com/mozilla/pontoon -version: 1.3.0 +version: 1.4.0 # Pontoon no longer cuts releases. # See https://github.com/mozilla/pontoon/releases/tag/2018-12-19 # and https://hub.docker.com/r/skillsnetwork/pontoon/tags diff --git a/charts/pontoon/templates/pontoon-migration-job.yaml b/charts/pontoon/templates/pontoon-migration-job.yaml index df26e78..bd5839c 100644 --- a/charts/pontoon/templates/pontoon-migration-job.yaml +++ b/charts/pontoon/templates/pontoon-migration-job.yaml @@ -22,6 +22,12 @@ spec: heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: "pontoon-migration-job" + {{- if .Values.podAnnotations }} + annotations: + {{- range $key, $value := .Values.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: imagePullSecrets: {{- range .Values.imagePullSecrets }} diff --git a/charts/pontoon/templates/pontoon-sync-projects-cronjob.yaml b/charts/pontoon/templates/pontoon-sync-projects-cronjob.yaml index 60c4788..b347f7c 100644 --- a/charts/pontoon/templates/pontoon-sync-projects-cronjob.yaml +++ b/charts/pontoon/templates/pontoon-sync-projects-cronjob.yaml @@ -34,6 +34,10 @@ spec: heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: "pontoon-sync-projects-cronjob" + annotations: + {{- range $key, $value := .Values.syncProjectCronjob.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: imagePullSecrets: {{- range .Values.imagePullSecrets }}