chore(helm): Adding migration namespaces

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-07-04 16:06:53 +02:00
parent 637b73f565
commit 2c8d051461
2 changed files with 3 additions and 0 deletions

View file

@ -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:

View file

@ -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 }}