Skip to content

Commit e0c4801

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

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-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: 30 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,21 @@
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+
"type": "array",
124+
"items": {
125+
"type": "object",
126+
"properties": {
127+
"name": {
128+
"type": "string"
129+
},
130+
"value": {
131+
"type": "string"
132+
}
133+
}
134+
}
135+
},
106136
"livenessProbe": {
107137
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/container.json#/properties/livenessProbe",
108138
"type": "object"

Charts/fastcs/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
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+
iocEnv: []
20+
1521
# @schema description: container image URI
1622
image:
1723
repository: ""

0 commit comments

Comments
 (0)