allow for additional container environment variables #16
Reference in New Issue
Block a user
No description provided.
Delete Branch "Jasper-Ben/helm-chart:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
e.g. useful for setting the timezone "TZ=Europe/Berlin"
@@ -70,6 +70,7 @@ spec:) \{{- end }}'{{- toYaml .Values.env | trim | nindent 12 }}Why is this at the end of the init container?
Whoops, my bad. Got distracted ?
@@ -87,6 +88,7 @@ spec:value: {{ .Values.gitea.config.server.SSH_LISTEN_PORT | quote }}- name: SSH_PORTvalue: {{ .Values.gitea.config.server.SSH_PORT | quote }}{{- toYaml .Values.env | trim | nindent 12 }}Why using trim?
We could think about using something like that:
To ensure that only strings are created, since kubernetes will fail on ints and other types
I am not sure, how Kubernetes would handle
name: "foo "during variable assignment. Thequotepart is definitely a good idea though.Good point, maybe we should use this ?
Done ?
@@ -52,6 +52,10 @@ tolerations: []affinity: {}env: []You're adding this to statefulset, so it should be there in the values.
@@ -89,1 +89,4 @@value: {{ .Values.gitea.config.server.SSH_PORT | quote }}{{- range .Values.statefulset.env }}- name: {{ .name | quote | trim }}value: {{ .value | quote }}Sorry, just did some testing. Trim does not really work with quote.
And you're right, kubernetes does not accept whitespaces at the end. However it does not throw an error but completely refuses to fire up the pod without any message.
This solves this issue:
And you're right again, we only need to trim the name. The value can have spaces :)
so value should be
value: {{ .value | quote }}right?yes :)
Please resolve the conflicts.
cfb7621e91tob14afba640b14afba640toc66ac9cee5Looks good to me