update Cloudflare dashboard token as optional (#1417)

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
AJandDevin Buhl authored and GitHub committed 2024-04-10 15:08:25 -04:00
1 parent 953ff569f8
commit 6fd11c398d
3 files changed
+5 -1

No files matched your search

@@ -44,11 +44,13 @@ spec:
secretKeyRef:
name: cloudflared-secret
key: TUNNEL_ID
#% if bootstrap_cloudflare.tunnel.token %#
TUNNEL_TOKEN:
valueFrom:
secretKeyRef:
name: cloudflared-secret
key: TUNNEL_TOKEN
#% endif %#
args:
- tunnel
- --config
@@ -5,7 +5,9 @@ metadata:
name: cloudflared-secret
stringData:
TUNNEL_ID: "#{ bootstrap_cloudflare.tunnel.id }#"
#% if bootstrap_cloudflare.tunnel.token %#
TUNNEL_TOKEN: "#{ bootstrap_cloudflare.tunnel.token }#"
#% endif %#
credentials.json: |
{
"AccountTag": "#{ bootstrap_cloudflare.tunnel.account_id }#",