File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1212 template :
1313 metadata :
1414 annotations :
15- {{- if or .Values.wiredoor.server .Values.wiredoor.token }}
15+ {{- if .Values.wiredoor.existingSecret }}
16+ checksum/wiredoor-secrets : " {{ .Values.wiredoor.existingSecret | sha256sum }}"
17+ {{- else if or .Values.wiredoor.server .Values.wiredoor.token }}
1618 checksum/wiredoor-secrets : " {{ toJson .Values.wiredoor | sha256sum }}"
1719 {{- end }}
1820 {{- if .Values.podAnnotations }}
@@ -36,10 +38,10 @@ spec:
3638 {{- toYaml .Values.securityContext | nindent 12 }}
3739 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3840 imagePullPolicy : {{ .Values.image.pullPolicy }}
39- {{- if or .Values.wiredoor.server .Values.wiredoor.token }}
41+ {{- if or .Values.wiredoor.existingSecret (or .Values.wiredoor. server .Values.wiredoor.token) }}
4042 envFrom :
4143 - secretRef :
42- name : " wiredoor-secrets"
44+ name : {{ .Values.wiredoor.existingSecret | default "wiredoor-secrets" | quote }}
4345 {{- end }}
4446 {{- if and .Values.service .Values.service.port }}
4547 ports :
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ nameOverride: ""
1515fullnameOverride : " "
1616
1717wiredoor :
18- server :
19- token :
18+ # existingSecret: name of an existing Secret to use for WIREDOOR_URL and TOKEN. When set, server/token are ignored.
19+ existingSecret : " "
20+ server :
21+ token :
2022 ip :
2123
2224podAnnotations : {}
You can’t perform that action at this time.
0 commit comments