fix configmap for dynamic env
This commit is contained in:
@@ -5,4 +5,4 @@ kind: Kustomization
|
||||
images:
|
||||
- name: controller
|
||||
newName: git.jwetzell.com/jwetzell/ontime-operator
|
||||
newTag: v1.6.2
|
||||
newTag: v1.7.2
|
||||
|
||||
@@ -20,6 +20,13 @@ rules:
|
||||
- secrets
|
||||
verbs:
|
||||
- "*"
|
||||
# We need to manage config maps
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- configmaps
|
||||
verbs:
|
||||
- "*"
|
||||
# We need to create events on CRs about things happening during reconciliation
|
||||
- apiGroups:
|
||||
- ""
|
||||
|
||||
@@ -3,4 +3,4 @@ appVersion: v4.1.0
|
||||
description: A Helm chart for Ontime
|
||||
name: stage
|
||||
type: application
|
||||
version: 1.6.2
|
||||
version: 1.7.2
|
||||
|
||||
@@ -4,5 +4,5 @@ metadata:
|
||||
name: {{ include "stage.fullname" . }}-env
|
||||
data:
|
||||
{{- if .Values.ontime.reset }}
|
||||
RESET_APP_STATE: true
|
||||
RESET_APP_STATE: "true"
|
||||
{{- end }}
|
||||
@@ -35,8 +35,8 @@ spec:
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.ontime.version | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
envFrom:
|
||||
configMapRef:
|
||||
name: {{ include "stage.fullname" . }}-env
|
||||
- configMapRef:
|
||||
name: {{ include "stage.fullname" . }}-env
|
||||
env:
|
||||
- name: IS_CLOUD
|
||||
value: "true"
|
||||
|
||||
Reference in New Issue
Block a user