File tree 8 files changed +31
-2
lines changed
8 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -60,3 +60,12 @@ Create the name of the service account to use
60
60
{ {- default " default" .Values.serviceAccount.name } }
61
61
{ {- end } }
62
62
{ {- end } }
63
+
64
+ { {/* Create the secret name for Aidbox, using existingSecret if set */} }
65
+ { {- define " aidbox.secretName" -} }
66
+ { {- if .Values.auth.existingSecret -} }
67
+ { { .Values.auth.existingSecret } }
68
+ { {- else -} }
69
+ { { include " aidbox.fullname" . } }
70
+ { {- end -} }
71
+ { {- end -} }
Original file line number Diff line number Diff line change 32
32
- configMapRef :
33
33
name : {{ include "aidbox.fullname" . }}
34
34
- secretRef :
35
- name : {{ include "aidbox.fullname " . }}
35
+ name : {{ include "aidbox.secretName " . }}
36
36
{{- range .Values.extraEnvFromConfigMaps }}
37
37
- configMapRef :
38
38
name : {{ . }}
Original file line number Diff line number Diff line change
1
+ {{- if not .Values.auth.existingSecret -}}
1
2
apiVersion : v1
2
3
kind : Secret
3
4
metadata :
17
18
{{ if .PGUSER }}PGUSER: {{ .PGUSER | b64enc }}{{ end }}
18
19
{{ if .PGPASSWORD }}PGPASSWORD: {{ .PGPASSWORD | b64enc }}{{ end }}
19
20
{{- end }}
21
+ {{- end -}}
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ config:
10
10
BOX_METRICS_PORT : 8765
11
11
PGPORT : 5432
12
12
13
+ auth :
14
+ existingSecret : " "
15
+
13
16
image :
14
17
repository : healthsamurai/aidboxone
15
18
pullPolicy : IfNotPresent
Original file line number Diff line number Diff line change @@ -60,3 +60,13 @@ Create the name of the service account to use
60
60
{ {- default " default" .Values.serviceAccount.name } }
61
61
{ {- end } }
62
62
{ {- end } }
63
+
64
+
65
+ { {/* Create the secret name for AidboxDB, using existingSecret if set */} }
66
+ { {- define " aidboxdb.secretName" -} }
67
+ { {- if .Values.auth.existingSecret -} }
68
+ { { .Values.auth.existingSecret } }
69
+ { {- else -} }
70
+ { { include " aidboxdb.fullname" . } }
71
+ { {- end -} }
72
+ { {- end -} }
Original file line number Diff line number Diff line change
1
+ {{- if not .Values.auth.existingSecret -}}
1
2
apiVersion : v1
2
3
kind : Secret
3
4
metadata :
10
11
POSTGRES_PASSWORD : {{ .POSTGRES_PASSWORD | b64enc }}
11
12
POSTGRES_USER : {{ .POSTGRES_USER | b64enc }}
12
13
{{- end }}
14
+ {{- end -}}
Original file line number Diff line number Diff line change 46
46
- configMapRef :
47
47
name : {{ $fullName }}-env
48
48
- secretRef :
49
- name : {{ $fullName }}
49
+ name : {{ include "aidboxdb.secretName" . }}
50
50
volumeMounts :
51
51
- name : db-pg-config
52
52
mountPath : /etc/configs
Original file line number Diff line number Diff line change 10
10
POSTGRES_USER : postgres
11
11
POSTGRES_DB : postgres
12
12
13
+ auth :
14
+ existingSecret : " "
15
+
13
16
storage :
14
17
# -- Storage className to use
15
18
className : " "
You can’t perform that action at this time.
0 commit comments