From 2c8d0514611c3a9231e87d8c4a80b7691f0af4cb Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 4 Jul 2022 16:06:53 +0200 Subject: [PATCH] chore(helm): Adding migration namespaces Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay/templates/job.yaml | 2 ++ scripts/helmcharts/openreplay/templates/serviceaccount.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/scripts/helmcharts/openreplay/templates/job.yaml b/scripts/helmcharts/openreplay/templates/job.yaml index 1d10e86de..93610899c 100644 --- a/scripts/helmcharts/openreplay/templates/job.yaml +++ b/scripts/helmcharts/openreplay/templates/job.yaml @@ -4,6 +4,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: db-migration-script + namespace: "{{ .Release.Namespace }}" annotations: "helm.sh/hook": pre-install, pre-upgrade "helm.sh/hook-weight": "-6" # Higher precidence, so the first the config map will get created. @@ -14,6 +15,7 @@ apiVersion: batch/v1 kind: Job metadata: name: databases-migrate + namespace: "{{ .Release.Namespace }}" labels: app: databases annotations: diff --git a/scripts/helmcharts/openreplay/templates/serviceaccount.yaml b/scripts/helmcharts/openreplay/templates/serviceaccount.yaml index 3f73b7b61..193dad0c8 100644 --- a/scripts/helmcharts/openreplay/templates/serviceaccount.yaml +++ b/scripts/helmcharts/openreplay/templates/serviceaccount.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "openreplay.serviceAccountName" . }} + namespace: "{{ .Release.Namespace }}" labels: {{- include "openreplay.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }}