Skip to content

Commit 0273c12

Browse files
committed
Merge branch 'main' of https://github.com/wiredoor/charts
2 parents a72067d + 14524ae commit 0273c12

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

charts/wiredoor-gateway/templates/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ spec:
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:

charts/wiredoor-gateway/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ nameOverride: ""
1515
fullnameOverride: ""
1616

1717
wiredoor:
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

2224
podAnnotations: {}

0 commit comments

Comments
 (0)