From 4a4b027bc5781ed8eeadd25ec311d264011dafe8 Mon Sep 17 00:00:00 2001 From: Serhii Syrota Date: Tue, 21 Nov 2023 18:39:47 +0200 Subject: [PATCH] Add affinity option to the migration job in helm chart (#1688) * Add affinity to migration job * feat(helm): add affinity to migrate job --- scripts/helmcharts/openreplay/templates/job.yaml | 4 ++++ scripts/helmcharts/openreplay/values.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/templates/job.yaml b/scripts/helmcharts/openreplay/templates/job.yaml index 8c6ae78a1..8cba21772 100644 --- a/scripts/helmcharts/openreplay/templates/job.yaml +++ b/scripts/helmcharts/openreplay/templates/job.yaml @@ -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 diff --git a/scripts/helmcharts/openreplay/values.yaml b/scripts/helmcharts/openreplay/values.yaml index 415ba997d..36a89beb1 100644 --- a/scripts/helmcharts/openreplay/values.yaml +++ b/scripts/helmcharts/openreplay/values.yaml @@ -1,7 +1,7 @@ migrationJob: podAnnotations: linkerd.io/inject: disabled - + affinity: {} migration: env: {}