Add affinity option to the migration job in helm chart (#1688)

* Add affinity to migration job

* feat(helm): add affinity to migrate job
This commit is contained in:
Serhii Syrota 2023-11-21 18:39:47 +02:00 committed by GitHub
parent 1b2023c4d9
commit 4a4b027bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -37,6 +37,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.migrationJob.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
- name: git
image: alpine/git

View file

@ -1,7 +1,7 @@
migrationJob:
podAnnotations:
linkerd.io/inject: disabled
affinity: {}
migration:
env: {}