feat(dispatch) add secretref for each module

This commit is contained in:
Tommy 2023-12-16 14:49:34 +01:00
parent 72b7a58a4a
commit 542a00b1b8
No known key found for this signature in database
5 changed files with 10 additions and 6 deletions

View file

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

View file

@ -29,4 +29,4 @@ spec:
- configMapRef: - configMapRef:
name: {{ include "dispatch.fullname" . }}-config name: {{ include "dispatch.fullname" . }}-config
- secretRef: - secretRef:
name: {{ .Values.postgres.secretRef.name }} name: {{ .Values.core.secretRef.name }}

View file

@ -23,4 +23,4 @@ spec:
- configMapRef: - configMapRef:
name: {{ include "dispatch.fullname" . }}-config name: {{ include "dispatch.fullname" . }}-config
- secretRef: - secretRef:
name: {{ .Values.postgres.secretRef.name }} name: {{ .Values.scheduler.secretRef.name }}

View file

@ -29,4 +29,4 @@ spec:
- configMapRef: - configMapRef:
name: {{ include "dispatch.fullname" . }}-config name: {{ include "dispatch.fullname" . }}-config
- secretRef: - secretRef:
name: {{ .Values.postgres.secretRef.name }} name: {{ .Values.web.secretRef.name }}

View file

@ -13,19 +13,23 @@ initContainers:
name: dispatch-secret name: dispatch-secret
core: core:
container: secretRef:
command: [] name: dispatch-secret
web: web:
container: container:
port: 8000 port: 8000
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"] command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
secretRef:
name: dispatch-secret
service: service:
type: ClusterIP type: ClusterIP
port: 80 port: 80
scheduler: scheduler:
command: ["dispatch", "scheduler", "start"] command: ["dispatch", "scheduler", "start"]
secretRef:
name: dispatch-secret
postgres: postgres:
hostname: "postgres-rw.databases.svc.cluster.local" hostname: "postgres-rw.databases.svc.cluster.local"