Skip to content

Commit

Permalink
port 'additionalEnvVars' to the chart feat
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Li <[email protected]>
  • Loading branch information
litaocdl committed Nov 25, 2024
1 parent 37055af commit 2324b80
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ spec:
{{- include "edb-postgres-for-kubernetes-lts.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
Expand Down Expand Up @@ -75,6 +74,9 @@ spec:
fieldPath: metadata.namespace
- name: MONITORING_QUERIES_CONFIGMAP
value: "{{ .Values.monitoringQueriesConfigMap.name }}"
{{- if .Values.additionalEnv }}
{{- tpl (.Values.additionalEnvVars | toYaml) . | nindent 8 }}
{{- end }}
{{ if not .Values.config.clusterWide -}}
- name: WATCH_NAMESPACE
value: "{{ .Release.Namespace }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ config:
# -- Additional arguments to be added to the operator's args list
additionalArgs: []

# -- Array containing extra environment variables which can be templated.
# For example:
# - name: RELEASE_NAME
# value: "{{ .Release.Name }}"
# - name: MY_VAR
# value: "mySpecialKey"
additionalEnv: []

serviceAccount:
# -- Specifies whether the service account should be created
create: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ spec:
{{- include "edb-postgres-distributed-for-kubernetes.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
kubectl.kubernetes.io/default-container: manager
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
Expand Down

0 comments on commit 2324b80

Please sign in to comment.