diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ea5b458..8ca3c63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-executables-have-shebangs - id: check-symlinks - id: check-yaml - exclude: ^helm-boilerplate/templates/.*$|^chart-schema.yaml$ + exclude: ^postal/templates/.*$|^chart-schema.yaml$ - id: detect-aws-credentials - id: mixed-line-ending - id: trailing-whitespace diff --git a/postal/templates/jobs/initialize/job.yaml b/postal/templates/jobs/initialize/job.yaml index f893258..69d29ca 100644 --- a/postal/templates/jobs/initialize/job.yaml +++ b/postal/templates/jobs/initialize/job.yaml @@ -3,6 +3,13 @@ apiVersion: batch/v1 kind: Job metadata: name: {{ include "postal.jobs.initialize.fullname" . }} + annotations: + {{- with .Values.commonAnnotations }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.jobs.initialize.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "postal.jobs.initialize.labels" . | nindent 4 }} spec: