Skip to content

Commit 9834703

Browse files
orangesqueezeClaudia Dumitrescu
and
Claudia Dumitrescu
authored
add extraenvs (#2344)
Co-authored-by: Claudia Dumitrescu <[email protected]>
1 parent 8f7b177 commit 9834703

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

helm-charts/atlas-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ spec:
5757
valueFrom:
5858
fieldRef:
5959
fieldPath: metadata.namespace
60+
{{- with .Values.extraEnvs }}
61+
{{- toYaml . | nindent 10 }}
62+
{{- end }}
6063
ports:
6164
- name: http
6265
containerPort: 80

helm-charts/atlas-operator/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ podSecurityContext:
8686
securityContext:
8787
allowPrivilegeEscalation: false
8888

89+
90+
# configure extra environment variables
91+
# Extra environment variables are writen in kubernetes format and added "as is" to the pod's env variables
92+
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
93+
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables
94+
extraEnvs:
95+
[]
96+
# Exemple of setting environment variables
97+
# - name: MY_VAR
98+
# value: my-value
99+
# - name: GOMEMLIMIT
100+
# valueFrom:
101+
# resourceFieldRef:
102+
# resource: limits.memory
103+
89104
# resources sets resources for the Operator container.
90105
# More information: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
91106
resources:

0 commit comments

Comments
 (0)