From b012e109a5bc7016ae888551e812c87d409effe7 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 16 Dec 2023 15:08:03 +0100 Subject: [PATCH] feat(dispatch) add support for env --- charts/dispatch/Chart.yaml | 2 +- charts/dispatch/templates/core-deployment.yaml | 1 + charts/dispatch/templates/scheduler-deployment.yaml | 1 + charts/dispatch/templates/web-deployment.yaml | 1 + charts/dispatch/values.yaml | 3 +++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/dispatch/Chart.yaml b/charts/dispatch/Chart.yaml index e92ea5d..aaa1b1a 100644 --- a/charts/dispatch/Chart.yaml +++ b/charts/dispatch/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: dispatch description: Netflix Dispatch incident management system -version: 0.1.8 +version: 0.1.9 diff --git a/charts/dispatch/templates/core-deployment.yaml b/charts/dispatch/templates/core-deployment.yaml index c2327c8..6fde6c7 100644 --- a/charts/dispatch/templates/core-deployment.yaml +++ b/charts/dispatch/templates/core-deployment.yaml @@ -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 }} diff --git a/charts/dispatch/templates/scheduler-deployment.yaml b/charts/dispatch/templates/scheduler-deployment.yaml index 633fd50..9d27404 100644 --- a/charts/dispatch/templates/scheduler-deployment.yaml +++ b/charts/dispatch/templates/scheduler-deployment.yaml @@ -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 }} diff --git a/charts/dispatch/templates/web-deployment.yaml b/charts/dispatch/templates/web-deployment.yaml index 4a1ffd3..0bb1f73 100644 --- a/charts/dispatch/templates/web-deployment.yaml +++ b/charts/dispatch/templates/web-deployment.yaml @@ -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 }} diff --git a/charts/dispatch/values.yaml b/charts/dispatch/values.yaml index 02eb060..fad74cc 100644 --- a/charts/dispatch/values.yaml +++ b/charts/dispatch/values.yaml @@ -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