File tree 4 files changed +47
-1
lines changed
charts/ext-postgres-operator
4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type: application
7
7
# This is the chart version. This version number should be incremented each time you make changes
8
8
# to the chart and its templates, including the app version.
9
9
# Versions are expected to follow Semantic Versioning (https://semver.org/)
10
- version : 1.2.1
10
+ version : 1.2.2
11
11
12
12
# This is the version number of the application being deployed. This version number should be
13
13
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change 18
18
{{- end }}
19
19
labels :
20
20
{{- include "chart.selectorLabels" . | nindent 8 }}
21
+ {{- with .Values.podLabels }}
22
+ {{- toYaml . | nindent 8 }}
23
+ {{- end }}
21
24
spec :
22
25
serviceAccountName : {{ include "chart.serviceAccountName" . }}
23
26
securityContext :
32
35
imagePullPolicy : {{ .Values.image.pullPolicy }}
33
36
envFrom :
34
37
- secretRef :
38
+ {{- if .Values.existingSecret }}
39
+ name : {{ .Values.existingSecret }}
40
+ {{- else }}
35
41
name : {{ include "chart.fullname" . }}
42
+ {{- end }}
36
43
env :
37
44
- name : WATCH_NAMESPACE
38
45
value : {{ .Values.watchNamespace | default "" }}
42
49
fieldPath : metadata.name
43
50
- name : OPERATOR_NAME
44
51
value : {{ include "chart.fullname" . }}
52
+ {{- range $key, $value := .Values.env }}
53
+ - name : {{ $key }}
54
+ value : {{ $value }}
55
+ {{- end }}
56
+ {{- if .Values.volumeMounts }}
57
+ volumeMounts :
58
+ {{- toYaml .Values.volumeMounts | nindent 12 }}
59
+ {{- end }}
60
+ {{- if .Values.volumes }}
61
+ volumes :
62
+ {{- toYaml .Values.volumes | nindent 8 }}
63
+ {{- end }}
64
+ nodeSelector :
65
+ {{- toYaml .Values.nodeSelector | nindent 8 }}
66
+ tolerations :
67
+ {{- toYaml .Values.tolerations | nindent 8 }}
Original file line number Diff line number Diff line change
1
+ {{- if (not .Values.existingSecret) }}
2
+ ---
1
3
apiVersion : v1
2
4
kind : Secret
3
5
metadata :
15
17
POSTGRES_URI_ARGS : {{ .Values.postgres.uri_args | b64enc | quote }}
16
18
POSTGRES_CLOUD_PROVIDER : {{ .Values.postgres.cloud_provider | b64enc | quote }}
17
19
POSTGRES_DEFAULT_DATABASE : {{ .Values.postgres.default_database | b64enc | quote }}
20
+ {{- end }}
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ serviceAccount:
24
24
25
25
podAnnotations : {}
26
26
27
+ # Additionnal labels to add to the pod.
28
+ podLabels : {}
29
+
27
30
podSecurityContext : {}
28
31
# fsGroup: 2000
29
32
@@ -55,3 +58,20 @@ postgres:
55
58
cloud_provider : " "
56
59
# default database to use
57
60
default_database : " postgres"
61
+
62
+ # Volumes to add to the pod.
63
+ volumes : []
64
+
65
+ # Volumes to mount onto the pod.
66
+ volumeMounts : []
67
+
68
+ # Existing secret where values to connect to Postgres are defined.
69
+ # If not set a new secret will be created, filled with information under the postgres key above.
70
+ existingSecret : " "
71
+
72
+ # Additionnal environment variables to add to the pod (map of key / value)
73
+ env : {}
74
+
75
+ nodeSelector : {}
76
+
77
+ tolerations : []
You can’t perform that action at this time.
0 commit comments