Skip to content

Commit

Permalink
update Cloudflare dashboard token as optional (#1417)
Browse files Browse the repository at this point in the history
Co-authored-by: Devin Buhl <[email protected]>
  • Loading branch information
ajaykumar4 and onedr0p authored Apr 10, 2024
1 parent 953ff56 commit 6fd11c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }#",
Expand Down
2 changes: 1 addition & 1 deletion config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ bootstrap_cloudflare:
account_id: ""
# (Required: CLI) Cloudflared Tunnel Secret: (cat ~/.cloudflared/*.json | jq -r .TunnelSecret)
secret: ""
# (Required: Dashboard) Cloudflared Tunnel Token
# (Optional: Dashboard) Cloudflared Tunnel Token managed via the Cloudflare dashboard, Dashboard take higher priority over locally managed tunnel
token: ""
# (Required) Provide WAN access to the cluster ingresses for external ingress classes
# The Load balancer IP for external ingress, choose an available IP
Expand Down

0 comments on commit 6fd11c3

Please sign in to comment.