File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed
Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: defguard
33description : Defguard is an open-source enterprise WireGuard VPN with MFA and SSO
44
55type : application
6- version : 0.13.0
6+ version : 0.13.1
77appVersion : 1.5.2
88
99dependencies :
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ metadata:
1616 name : {{ include "defguard.jwtSecretName" . }}
1717 labels :
1818 {{- include "defguard.labels" . | nindent 4 }}
19+ annotations :
20+ " helm.sh/resource-policy " : keep
1921type : Opaque
2022data :
2123 auth : {{ $auth }}
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ metadata:
1010 name : {{ include "defguard.openidSecretName" . }}
1111 labels :
1212 {{- include "defguard.labels" . | nindent 4 }}
13+ annotations :
14+ " helm.sh/resource-policy " : keep
1315type : Opaque
1416data :
1517 openid-key : {{ $openIdKey }}
Original file line number Diff line number Diff line change 11{{ if .Values.postgresql.enabled }}
2- {{- $password := (randAlpha 16) | b64enc | quote }}
3- {{- $postgresPassword := (randAlpha 16) | b64enc | quote }}
4- {{- $secret := (lookup "v1" "Secret" .Release.Namespace .Values.postgresql.auth.existingSecret) }}
5- {{- if $secret }}
6- {{- $password = index $secret.data "password" }}
7- {{- $postgresPassword = index $secret.data "postgres-password" }}
8- {{- end }}
2+ {{- $secretName := .Values.postgresql.auth.existingSecret | default (printf "%s-postgresql" .Release.Name) }}
3+ {{- $existingSecret := (lookup "v1" "Secret" .Release.Namespace $secretName) }}
4+
5+ {{- if not $existingSecret }}
96apiVersion : v1
107kind : Secret
118metadata :
12- name : {{ .Values.postgresql.auth.existingSecret }}
9+ name : {{ $secretName }}
1310 labels :
1411 {{- include "defguard.labels" . | nindent 4 }}
12+ annotations :
13+ " helm.sh/resource-policy " : keep
1514type : Opaque
1615data :
17- password : {{ $password }}
18- postgres-password : {{ $postgresPassword }}
16+ password : {{ randAlpha 16 | b64enc | quote }}
17+ postgres-password : {{ randAlpha 16 | b64enc | quote }}
18+ {{- end }}
1919{{- end }}
You can’t perform that action at this time.
0 commit comments