File tree 4 files changed +27
-1
lines changed
4 files changed +27
-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 : 0.10.8
10
+ version : 0.11.0
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 27
27
imagePullPolicy : {{ .Values.image.backend.pullPolicy }}
28
28
env :
29
29
- name : DATABASE_HOST
30
+ {{- if and .Values.postgresql.enabled .Values.backend.postgresql.existingHost }}
31
+ {{ fail "postgresql.enabled and backend.postgresql.existingHost are mutually exclusive, please pick one" }}
32
+ {{- end }}
33
+ {{- if .Values.postgresql.enabled }}
30
34
value : " {{ template " caluma.fullname" . }}-postgresql"
35
+ {{- else if .Values.backend.postgresql.existingHost }}
36
+ value : {{ .Values.backend.postgresql.existingHost | quote }}
37
+ {{- else }}
38
+ {{ fail "neither postgresql.enabled or backend.postgresql.existingHost are set, please pick one" }}
39
+ {{- end }}
31
40
- name : DATABASE_PORT
32
41
value : " 5432"
33
42
- name : DATABASE_USER
40
49
- name : SECRET_KEY
41
50
valueFrom :
42
51
secretKeyRef :
52
+ {{- if .Values.existingSecret }}
53
+ name : {{ .Values.existingSecret | quote }}
54
+ {{- else }}
43
55
name : " {{ template " caluma.fullname" . }}-backend"
56
+ {{- end }}
44
57
key : secretkey
45
58
- name : ALLOWED_HOSTS
46
59
value : " {{ .Values.allowedHosts }}"
Original file line number Diff line number Diff line change
1
+ {{- if not .Values.existingSecret }}
1
2
{{- $fullName := include "caluma.fullname" . -}}
2
3
apiVersion : v1
3
4
kind : Secret
@@ -9,3 +10,4 @@ metadata:
9
10
type : Opaque
10
11
data :
11
12
secretkey : {{ if .Values.secretKey }}{{ .Values.secretKey | b64enc | quote }}{{ else }}{{ randAlphaNum 40 | b64enc | quote }}{{ end }}
13
+ {{- end }}
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ nameOverride: ""
32
32
fullnameOverride : " "
33
33
34
34
secretKey : " SUPERSECRET"
35
+ # instead of exposing the secretKey in the values, a existingSecret can be defined
36
+ # if set no secret will be created by the Helm chart.
37
+ # create the secret manually:
38
+ # kubectl create secret generic -n your-namespace --from-literal=secretKey=SUPERSECRETKEY
39
+ existingSecret : " "
35
40
allowedHosts : " *"
36
41
37
42
frontend :
@@ -54,6 +59,12 @@ backend:
54
59
service :
55
60
type : ClusterIP
56
61
62
+ postgresql :
63
+ # # Optionally sepcify an existing database host to connect to
64
+ # # this can only be used if postgresql.enabled is set to false
65
+ existingHost : " "
66
+
67
+
57
68
ingress :
58
69
enabled : false
59
70
annotations : {}
You can’t perform that action at this time.
0 commit comments