From d04fd73ff4fee4ed65d6821200b35ecbd9fd7783 Mon Sep 17 00:00:00 2001 From: Christian Roggia Date: Mon, 3 May 2021 21:50:50 +0200 Subject: [PATCH] feat: add job annotations to tamplate as well (#261) --- helm/charts/hydra/templates/job-migration.yaml | 5 +++++ helm/charts/keto/templates/job-migration.yaml | 5 +++++ helm/charts/kratos/templates/job-migration.yaml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/helm/charts/hydra/templates/job-migration.yaml b/helm/charts/hydra/templates/job-migration.yaml index fa14fcf02..24014dac1 100644 --- a/helm/charts/hydra/templates/job-migration.yaml +++ b/helm/charts/hydra/templates/job-migration.yaml @@ -21,6 +21,11 @@ metadata: helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded" spec: template: + {{- with .Values.job.annotations }} + metadata: + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: containers: - name: {{ .Chart.Name }}-automigrate diff --git a/helm/charts/keto/templates/job-migration.yaml b/helm/charts/keto/templates/job-migration.yaml index 8a562366a..a44d19408 100644 --- a/helm/charts/keto/templates/job-migration.yaml +++ b/helm/charts/keto/templates/job-migration.yaml @@ -18,6 +18,11 @@ metadata: helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded" spec: template: + {{- with .Values.job.annotations }} + metadata: + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: containers: - name: {{ .Chart.Name }}-automigrate diff --git a/helm/charts/kratos/templates/job-migration.yaml b/helm/charts/kratos/templates/job-migration.yaml index aa6b5cce6..4b58f0425 100644 --- a/helm/charts/kratos/templates/job-migration.yaml +++ b/helm/charts/kratos/templates/job-migration.yaml @@ -18,6 +18,11 @@ metadata: helm.sh/hook-delete-policy: "before-hook-creation" spec: template: + {{- with .Values.job.annotations }} + metadata: + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: containers: - name: {{ .Chart.Name }}-automigrate