feat(dispatch) add support for env

This commit is contained in:
Tommy 2023-12-16 15:08:03 +01:00
parent 7251f5bbc2
commit b012e109a5
No known key found for this signature in database
5 changed files with 7 additions and 1 deletions

View file

@ -1,4 +1,4 @@
apiVersion: v2
name: dispatch
description: Netflix Dispatch incident management system
version: 0.1.8
version: 0.1.9

View file

@ -26,6 +26,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.core.container.command }}
env: {{ .Values.core.container.env }}
envFrom:
- secretRef:
name: {{ .Values.core.container.envFrom.secretRef.name }}

View file

@ -20,6 +20,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.scheduler.container.command }}
env: {{ .Values.scheduler.container.env }}
envFrom:
- secretRef:
name: {{ .Values.scheduler.container.envFrom.secretRef.name }}

View file

@ -26,6 +26,7 @@ spec:
command: {{ .Values.web.container.command }}
ports:
- containerPort: {{ .Values.web.container.port }}
env: {{ .Values.web.container.env }}
envFrom:
- secretRef:
name: {{ .Values.web.container.envFrom.secretRef.name }}

View file

@ -15,6 +15,7 @@ initContainers:
core:
enabled: true
container:
env: []
envFrom:
secretRef:
name: dispatch-secret
@ -24,6 +25,7 @@ web:
container:
port: 8000
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
env: []
envFrom:
secretRef:
name: dispatch-secret
@ -35,6 +37,7 @@ scheduler:
enabled: true
container:
command: ["dispatch", "scheduler", "start"]
env: []
envFrom:
secretRef:
name: dispatch-secret