feat(dispatch) Move secrets to one common var. Cleanup.
This commit is contained in:
parent
47948e795b
commit
b2d107839f
5 changed files with 8 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v2
|
||||
name: dispatch
|
||||
description: Netflix Dispatch incident management system
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
|
|
|
@ -29,5 +29,5 @@ spec:
|
|||
env: {{ .Values.core.container.env }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.core.container.envFrom.secretRef.name }}
|
||||
name: {{ .Values.envFromSecret }}
|
||||
{{- end }}
|
|
@ -23,5 +23,5 @@ spec:
|
|||
env: {{ .Values.scheduler.container.env }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.scheduler.container.envFrom.secretRef.name }}
|
||||
name: {{ .Values.envFromSecret }}
|
||||
{{- end }}
|
|
@ -29,5 +29,5 @@ spec:
|
|||
env: {{ .Values.web.container.env }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.web.container.envFrom.secretRef.name }}
|
||||
name: {{ .Values.envFromSecret }}
|
||||
{{- end }}
|
|
@ -1,3 +1,5 @@
|
|||
envFromSecret: dispatch-secret
|
||||
|
||||
image:
|
||||
repository: ghcr.io/tommy-skaug/dispatch
|
||||
tag: v20230919
|
||||
|
@ -16,9 +18,7 @@ core:
|
|||
enabled: true
|
||||
container:
|
||||
env: []
|
||||
envFrom:
|
||||
secretRef:
|
||||
name: dispatch-secret
|
||||
|
||||
|
||||
web:
|
||||
enabled: true
|
||||
|
@ -26,9 +26,7 @@ web:
|
|||
port: 8000
|
||||
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
|
||||
env: []
|
||||
envFrom:
|
||||
secretRef:
|
||||
name: dispatch-secret
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
@ -38,9 +36,6 @@ scheduler:
|
|||
container:
|
||||
command: ["dispatch", "scheduler", "start"]
|
||||
env: []
|
||||
envFrom:
|
||||
secretRef:
|
||||
name: dispatch-secret
|
||||
|
||||
postgres:
|
||||
hostname: "postgres-rw.databases.svc.cluster.local"
|
||||
|
|
Loading…
Reference in a new issue