From 542a00b1b8443b98eb93dd9448208930852239d2 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 16 Dec 2023 14:49:34 +0100 Subject: [PATCH] feat(dispatch) add secretref for each module --- charts/dispatch/Chart.yaml | 2 +- charts/dispatch/templates/core-deployment.yaml | 2 +- charts/dispatch/templates/scheduler-deployment.yaml | 2 +- charts/dispatch/templates/web-deployment.yaml | 2 +- charts/dispatch/values.yaml | 8 ++++++-- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/charts/dispatch/Chart.yaml b/charts/dispatch/Chart.yaml index c2c8da9..78ee8f6 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.4 \ No newline at end of file +version: 0.1.5 \ No newline at end of file diff --git a/charts/dispatch/templates/core-deployment.yaml b/charts/dispatch/templates/core-deployment.yaml index 33b8510..6238287 100644 --- a/charts/dispatch/templates/core-deployment.yaml +++ b/charts/dispatch/templates/core-deployment.yaml @@ -29,4 +29,4 @@ spec: - configMapRef: name: {{ include "dispatch.fullname" . }}-config - secretRef: - name: {{ .Values.postgres.secretRef.name }} \ No newline at end of file + name: {{ .Values.core.secretRef.name }} \ No newline at end of file diff --git a/charts/dispatch/templates/scheduler-deployment.yaml b/charts/dispatch/templates/scheduler-deployment.yaml index c975813..2e95757 100644 --- a/charts/dispatch/templates/scheduler-deployment.yaml +++ b/charts/dispatch/templates/scheduler-deployment.yaml @@ -23,4 +23,4 @@ spec: - configMapRef: name: {{ include "dispatch.fullname" . }}-config - secretRef: - name: {{ .Values.postgres.secretRef.name }} + name: {{ .Values.scheduler.secretRef.name }} \ No newline at end of file diff --git a/charts/dispatch/templates/web-deployment.yaml b/charts/dispatch/templates/web-deployment.yaml index f12cc27..ad25418 100644 --- a/charts/dispatch/templates/web-deployment.yaml +++ b/charts/dispatch/templates/web-deployment.yaml @@ -29,4 +29,4 @@ spec: - configMapRef: name: {{ include "dispatch.fullname" . }}-config - secretRef: - name: {{ .Values.postgres.secretRef.name }} \ No newline at end of file + name: {{ .Values.web.secretRef.name }} \ No newline at end of file diff --git a/charts/dispatch/values.yaml b/charts/dispatch/values.yaml index 2d4e49d..79709e9 100644 --- a/charts/dispatch/values.yaml +++ b/charts/dispatch/values.yaml @@ -13,19 +13,23 @@ initContainers: name: dispatch-secret core: - container: - command: [] + secretRef: + name: dispatch-secret web: container: port: 8000 command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"] + secretRef: + name: dispatch-secret service: type: ClusterIP port: 80 scheduler: command: ["dispatch", "scheduler", "start"] + secretRef: + name: dispatch-secret postgres: hostname: "postgres-rw.databases.svc.cluster.local"