Skip to content

Adding ability to add extraEnvs for Atlas Operator deployment #2344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions helm-charts/atlas-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- with .Values.extraEnvs }}
{{- toYaml . | nindent 10 }}
{{- end }}
ports:
- name: http
containerPort: 80
Expand Down
15 changes: 15 additions & 0 deletions helm-charts/atlas-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ podSecurityContext:
securityContext:
allowPrivilegeEscalation: false


# configure extra environment variables
# Extra environment variables are writen in kubernetes format and added "as is" to the pod's env variables
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables
extraEnvs:
[]
# Exemple of setting environment variables
# - name: MY_VAR
# value: my-value
# - name: GOMEMLIMIT
# valueFrom:
# resourceFieldRef:
# resource: limits.memory

# resources sets resources for the Operator container.
# More information: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
resources:
Expand Down
Loading