Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cloudflare-tunnel-remote): add external secrets support #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/cloudflare-tunnel-remote/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/cloudflare-tunnel-remote/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- name: TUNNEL_TOKEN
valueFrom:
secretKeyRef:
name: {{ include "cloudflare-tunnel-remote.fullname" . }}
name: {{ .Values.cloudflare.secretName | default (include "cloudflare-tunnel-remote.fullname" .) }}
key: tunnelToken
livenessProbe:
httpGet:
Expand Down
2 changes: 2 additions & 0 deletions charts/cloudflare-tunnel-remote/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This credentials secret allows cloudflared to authenticate itself
# to the Cloudflare infrastructure.
{{- if and (.Values.cloudflare.tunnel_token) (not .Values.cloudflare.secretName) }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -8,3 +9,4 @@ metadata:
{{- include "cloudflare-tunnel-remote.labels" . | nindent 4 }}
stringData:
tunnelToken: {{ .Values.cloudflare.tunnel_token }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/cloudflare-tunnel-remote/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Cloudflare parameters.
cloudflare:
tunnel_token: ""
# If defined, no secret is created for the credentials, and instead, the secret referenced is used
secretName: null

image:
repository: cloudflare/cloudflared
Expand Down