Skip to content

Commit 09ade9a

Browse files
author
Artem Babii
committed
add eso support
1 parent b85225e commit 09ade9a

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

charts/cloudflare-tunnel-remote/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.1
18+
version: 0.1.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/cloudflare-tunnel-remote/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
- name: TUNNEL_TOKEN
4141
valueFrom:
4242
secretKeyRef:
43-
name: {{ include "cloudflare-tunnel-remote.fullname" . }}
43+
name: {{ .Values.cloudflare.secretName | default (include "cloudflare-tunnel-remote.fullname" .) }}
4444
key: tunnelToken
4545
livenessProbe:
4646
httpGet:

charts/cloudflare-tunnel-remote/templates/secret.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This credentials secret allows cloudflared to authenticate itself
22
# to the Cloudflare infrastructure.
3+
{{- if and (.Values.cloudflare.tunnel_token) (not .Values.cloudflare.secretName) }}
34
apiVersion: v1
45
kind: Secret
56
metadata:
@@ -8,3 +9,4 @@ metadata:
89
{{- include "cloudflare-tunnel-remote.labels" . | nindent 4 }}
910
stringData:
1011
tunnelToken: {{ .Values.cloudflare.tunnel_token }}
12+
{{- end }}

charts/cloudflare-tunnel-remote/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Cloudflare parameters.
44
cloudflare:
55
tunnel_token: ""
6+
# If defined, no secret is created for the credentials, and instead, the secret referenced is used
7+
secretName: null
68

79
image:
810
repository: cloudflare/cloudflared

0 commit comments

Comments
 (0)