feat(dispatch) Move secrets to one common var. Cleanup.

This commit is contained in:
Tommy 2023-12-16 15:53:10 +01:00
parent 47948e795b
commit b2d107839f
No known key found for this signature in database
5 changed files with 8 additions and 13 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.2.0 version: 0.2.1

View file

@ -29,5 +29,5 @@ spec:
env: {{ .Values.core.container.env }} env: {{ .Values.core.container.env }}
envFrom: envFrom:
- secretRef: - secretRef:
name: {{ .Values.core.container.envFrom.secretRef.name }} name: {{ .Values.envFromSecret }}
{{- end }} {{- end }}

View file

@ -23,5 +23,5 @@ spec:
env: {{ .Values.scheduler.container.env }} env: {{ .Values.scheduler.container.env }}
envFrom: envFrom:
- secretRef: - secretRef:
name: {{ .Values.scheduler.container.envFrom.secretRef.name }} name: {{ .Values.envFromSecret }}
{{- end }} {{- end }}

View file

@ -29,5 +29,5 @@ spec:
env: {{ .Values.web.container.env }} env: {{ .Values.web.container.env }}
envFrom: envFrom:
- secretRef: - secretRef:
name: {{ .Values.web.container.envFrom.secretRef.name }} name: {{ .Values.envFromSecret }}
{{- end }} {{- end }}

View file

@ -1,3 +1,5 @@
envFromSecret: dispatch-secret
image: image:
repository: ghcr.io/tommy-skaug/dispatch repository: ghcr.io/tommy-skaug/dispatch
tag: v20230919 tag: v20230919
@ -16,9 +18,7 @@ core:
enabled: true enabled: true
container: container:
env: [] env: []
envFrom:
secretRef:
name: dispatch-secret
web: web:
enabled: true enabled: true
@ -26,9 +26,7 @@ web:
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"]
env: [] env: []
envFrom:
secretRef:
name: dispatch-secret
service: service:
type: ClusterIP type: ClusterIP
port: 80 port: 80
@ -38,9 +36,6 @@ scheduler:
container: container:
command: ["dispatch", "scheduler", "start"] command: ["dispatch", "scheduler", "start"]
env: [] env: []
envFrom:
secretRef:
name: dispatch-secret
postgres: postgres:
hostname: "postgres-rw.databases.svc.cluster.local" hostname: "postgres-rw.databases.svc.cluster.local"