feat(dispatch) add enabled flags for the components. Separate secrets so that they can be referenced in each chart. Add a few initial notes.

This commit is contained in:
Tommy 2023-12-16 15:04:59 +01:00
parent cde310d6bc
commit 7251f5bbc2
No known key found for this signature in database
4 changed files with 8 additions and 7 deletions

View file

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

View file

@ -19,7 +19,7 @@ spec:
- name: scheduler
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.scheduler.command }}
command: {{ .Values.scheduler.container.command }}
envFrom:
- secretRef:
name: {{ .Values.scheduler.container.envFrom.secretRef.name }}

View file

@ -23,7 +23,7 @@ spec:
- name: web
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.web.command }}
command: {{ .Values.web.container.command }}
ports:
- containerPort: {{ .Values.web.container.port }}
envFrom:

View file

@ -14,8 +14,10 @@ initContainers:
core:
enabled: true
secretRef:
name: dispatch-secret
container:
envFrom:
secretRef:
name: dispatch-secret
web:
enabled: true
@ -31,9 +33,8 @@ web:
scheduler:
enabled: true
command: ["dispatch", "scheduler", "start"]
container:
command: ["dispatch", "scheduler"]
command: ["dispatch", "scheduler", "start"]
envFrom:
secretRef:
name: dispatch-secret