Skip to content

Commit

Permalink
feat: add job annotations to tamplate as well (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-roggia authored May 3, 2021
1 parent b14457c commit d04fd73
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helm/charts/hydra/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/keto/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/kratos/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d04fd73

Please sign in to comment.