Skip to content

Commit f105533

Browse files
authored
feat: Add extraEnvs to operator-ui helm chart (zalando#1582)
* feat: Add extraEnvs to operator-ui helm chart * chore: Add env variables exemple to exemple manifest * docs: Add comments on ui extraenvs
1 parent 282b6d2 commit f105533

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

charts/postgres-operator-ui/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ spec:
7676
"11"
7777
]
7878
}
79+
{{- if .Values.extraEnvs }}
80+
{{- .Values.extraEnvs | toYaml | nindent 12 }}
81+
{{- end }}

charts/postgres-operator-ui/values.yaml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,36 @@ envs:
4848
teams:
4949
- "acid"
5050

51+
# configure extra UI ENVs
52+
# Extra ENVs are writen in kubenertes format and added "as is" to the pod's env variables
53+
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
54+
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables
55+
# UI specific env variables can be found here: https://github.com/zalando/postgres-operator/blob/master/ui/operator_ui/main.py
56+
extraEnvs:
57+
[]
58+
# Exemple of settings to make snapshot view working in the ui when using AWS
59+
# - name: WALE_S3_ENDPOINT
60+
# value: https+path://s3.us-east-1.amazonaws.com:443
61+
# - name: SPILO_S3_BACKUP_PREFIX
62+
# value: spilo/
63+
# - name: AWS_ACCESS_KEY_ID
64+
# valueFrom:
65+
# secretKeyRef:
66+
# name: <postgres operator secret with AWS token>
67+
# key: AWS_ACCESS_KEY_ID
68+
# - name: AWS_SECRET_ACCESS_KEY
69+
# valueFrom:
70+
# secretKeyRef:
71+
# name: <postgres operator secret with AWS token>
72+
# key: AWS_SECRET_ACCESS_KEY
73+
# - name: AWS_DEFAULT_REGION
74+
# valueFrom:
75+
# secretKeyRef:
76+
# name: <postgres operator secret with AWS token>
77+
# key: AWS_DEFAULT_REGION
78+
# - name: SPILO_S3_BACKUP_BUCKET
79+
# value: <s3 bucket used by the operator>
80+
5181
# configure UI service
5282
service:
5383
type: "ClusterIP"
@@ -59,7 +89,8 @@ service:
5989
# configure UI ingress. If needed: "enabled: true"
6090
ingress:
6191
enabled: false
62-
annotations: {}
92+
annotations:
93+
{}
6394
# kubernetes.io/ingress.class: nginx
6495
# kubernetes.io/tls-acme: "true"
6596
hosts:

ui/manifests/deployment.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,25 @@ spec:
7171
"11"
7272
]
7373
}
74+
# Exemple of settings to make snapshot view working in the ui when using AWS
75+
# - name: WALE_S3_ENDPOINT
76+
# value: https+path://s3.us-east-1.amazonaws.com:443
77+
# - name: SPILO_S3_BACKUP_PREFIX
78+
# value: spilo/
79+
# - name: AWS_ACCESS_KEY_ID
80+
# valueFrom:
81+
# secretKeyRef:
82+
# name: <postgres operator secret with AWS token>
83+
# key: AWS_ACCESS_KEY_ID
84+
# - name: AWS_SECRET_ACCESS_KEY
85+
# valueFrom:
86+
# secretKeyRef:
87+
# name: <postgres operator secret with AWS token>
88+
# key: AWS_SECRET_ACCESS_KEY
89+
# - name: AWS_DEFAULT_REGION
90+
# valueFrom:
91+
# secretKeyRef:
92+
# name: <postgres operator secret with AWS token>
93+
# key: AWS_DEFAULT_REGION
94+
# - name: SPILO_S3_BACKUP_BUCKET
95+
# value: <s3 bucket used by the operator>

0 commit comments

Comments
 (0)