Skip to content

Commit fd50adf

Browse files
committed
chore(charts): add custom controller environment variables support
1 parent 219d694 commit fd50adf

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

charts/controller/templates/controller-deployment.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,16 @@ spec:
128128
secretKeyRef:
129129
name: database-creds
130130
key: password
131-
- name: RESERVED_NAMES
132-
value: "drycc, drycc-builder, drycc-monitor-grafana"
133131
- name: WORKFLOW_NAMESPACE
134132
valueFrom:
135133
fieldRef:
136134
fieldPath: metadata.namespace
137135
- name: DRYCC_NSQD_ADDRS
138136
value: "{{range $i := until $nsqdNodeCount}}drycc-nsqd-{{$i}}.drycc-nsqd.{{ $.Release.Namespace }}.svc.cluster.local:{{$.Values.nsqd.tcp_port}}{{if lt (add 1 $i) $nsqdNodeCount}},{{end}}{{end}}"
137+
{{- range $key, $value := .Values.environment }}
138+
- name: {{ $key }}
139+
value: {{ $value | quote }}
140+
{{- end }}
139141
volumeMounts:
140142
- mountPath: /etc/slugrunner
141143
name: slugrunner-config

charts/controller/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ k8s_api_verify_tls: "true"
1919
# Set storageClassName, It is used for application mount.
2020
app_storage_class: ""
2121

22+
# Any custom controller environment variables
23+
# can be specified as key-value pairs under environment
24+
# this is usually a non required setting.
25+
environment:
26+
RESERVED_NAMES: "drycc, drycc-builder, drycc-monitor-grafana"
27+
2228
nsqd:
2329
replicas: 1
2430
tcp_port: 4150

0 commit comments

Comments
 (0)