Skip to content

Commit 28d922c

Browse files
committed
add control of environment variables to the helm chart
1 parent 9c2042a commit 28d922c

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

Charts/fastcs/extra.values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ extraContainers:
1313
- command
1414
- arg1
1515
- arg2
16+
17+
globalEnv:
18+
- name: example
19+
value: example
20+
21+
iocEnv:
22+
- name: example
23+
value: example

Charts/fastcs/templates/statefulset.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ spec:
7878
- name: {{ .name }}
7979
image: {{ .image }}
8080
imagePullPolicy: {{ $.Values.image.pullPolicy }}
81+
env:
82+
- name: IPYTHONDIR
83+
value: /tmp/.ipython
84+
- name: TERM
85+
value: xterm-256color
86+
{{- with .Values.globalEnv }}
87+
{{ toYaml . | nindent 12}}
88+
{{- end }}
89+
{{- with .Values.iocEnv }}
90+
{{ toYaml . | nindent 12}}
91+
{{- end }}
8192
{{- with $.Values.securityContext }}
8293
securityContext:
8394
{{- toYaml . | nindent 12 }}

Charts/fastcs/values.schema.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,21 @@
7373
"type": "object",
7474
"additionalProperties": true
7575
},
76+
"globalEnv": {
77+
"description": "Add environment to all IOCs",
78+
"type": "array",
79+
"items": {
80+
"type": "object",
81+
"properties": {
82+
"name": {
83+
"type": "string"
84+
},
85+
"value": {
86+
"type": "string"
87+
}
88+
}
89+
}
90+
},
7691
"hostNetwork": {
7792
"description": "enable host networking for the pod",
7893
"type": "boolean"
@@ -103,6 +118,22 @@
103118
"description": "path to the location of config folder (defaults to be the same as C++ IOCs)",
104119
"type": "string"
105120
},
121+
"iocEnv": {
122+
"description": "Add environment to individual IOCs",
123+
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/container.json#/properties/env",
124+
"type": "array",
125+
"items": {
126+
"type": "object",
127+
"properties": {
128+
"name": {
129+
"type": "string"
130+
},
131+
"value": {
132+
"type": "string"
133+
}
134+
}
135+
}
136+
},
106137
"livenessProbe": {
107138
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/container.json#/properties/livenessProbe",
108139
"type": "object"

Charts/fastcs/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
# @schema additionalProperties: true
1313
global: {}
1414

15+
# @schema description: Add environment to all IOCs
16+
globalEnv: []
17+
18+
# @schema description: Add environment to individual IOCs
19+
# @schema $ref:$k8s/container.json#/properties/env
20+
iocEnv: []
21+
1522
# @schema description: container image URI
1623
image:
1724
repository: ""

0 commit comments

Comments
 (0)