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
|
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
|
||||||
|
|
|
@ -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 }}
|
|
@ -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 }}
|
|
@ -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 }}
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue