Compare commits

...

5 Commits

Author SHA1 Message Date
a7cec76210 fix secret name
All checks were successful
renovate / renovate (push) Successful in 34s
lint-and-test / lint-helm (push) Successful in 14s
lint-and-test / chart-testing (push) Successful in 18s
release-charts-cloudflared / release (push) Successful in 23s
2025-12-17 19:04:37 -06:00
69b32b7563 fix name generation
All checks were successful
lint-and-test / lint-helm (push) Successful in 8s
release-charts-cloudflared / release (push) Successful in 23s
lint-and-test / chart-testing (push) Successful in 24s
renovate / renovate (push) Successful in 31s
2025-12-17 18:12:07 -06:00
5da9e52dc6 fix incorrect value
All checks were successful
lint-and-test / lint-helm (push) Successful in 10s
release-charts-cloudflared / release (push) Successful in 18s
lint-and-test / chart-testing (push) Successful in 19s
renovate / renovate (push) Successful in 43s
2025-12-17 17:57:09 -06:00
de71b388ca fix name generation
All checks were successful
lint-and-test / lint-helm (push) Successful in 9s
release-charts-cloudflared / release (push) Successful in 20s
lint-and-test / chart-testing (push) Successful in 21s
renovate / renovate (push) Successful in 29s
2025-12-17 17:43:07 -06:00
96fb5c3dfa rewrite name generation
All checks were successful
lint-and-test / lint-helm (push) Successful in 14s
release-charts-cloudflared / release (push) Successful in 27s
lint-and-test / chart-testing (push) Successful in 33s
renovate / renovate (push) Successful in 41s
2025-12-17 17:01:02 -06:00
5 changed files with 23 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: cloudflared
version: 2.0.1
version: 2.1.4
description: Cloudflared Tunnel
keywords:
- cloudflare

View File

@@ -1,6 +1,6 @@
# cloudflared
![Version: 2.0.1](https://img.shields.io/badge/Version-2.0.1-informational?style=flat-square) ![AppVersion: 2025.11.1](https://img.shields.io/badge/AppVersion-2025.11.1-informational?style=flat-square)
![Version: 2.1.4](https://img.shields.io/badge/Version-2.1.4-informational?style=flat-square) ![AppVersion: 2025.11.1](https://img.shields.io/badge/AppVersion-2025.11.1-informational?style=flat-square)
Cloudflared Tunnel
@@ -26,7 +26,7 @@ Cloudflared Tunnel
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| image | object | `{"pullPolicy":"IfNotPresent","repository":"cloudflare/cloudflared","tag":"2025.11.1"}` | Default image |
| name | string | `"cloudflared"` | Name override of release |
| name | string | `""` | Name override of release |
| resources | object | `{"requests":{"cpu":"10m","memory":"128Mi"}}` | Default resources |
| secret | object | `{"existingSecret":{"key":"cf-tunnel-token","name":"cloudflared-secret"},"externalSecret":{"additionalLabels":{},"enabled":true,"nameOverride":"","store":{"name":"vault","path":"/cloudflare/tunnels","property":"token"}}}` | Secret configuration |
| secret.existingSecret | object | `{"key":"cf-tunnel-token","name":"cloudflared-secret"}` | Name of existing secret that contains Cloudflare token |

View File

@@ -1,3 +1,14 @@
{{/*
Generate the root name
*/}}
{{- define "cloudflared.name" -}}
{{- if .Values.name }}
{{- printf "%s-cloudflared" .Values.name -}}
{{- else }}
{{- printf "cloudflared" -}}
{{- end }}
{{- end }}
{{/*
Generate the secret name
*/}}
@@ -6,7 +17,7 @@ Generate the secret name
{{- if .Values.secret.externalSecret.nameOverride }}
{{- .Values.secret.externalSecret.nameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-cloudflared-secret" .Release.Name -}}
{{- printf "%s-%s-secret" .Release.Name (include "cloudflared.name" .) -}}
{{- end }}
{{- else if .Values.secret.existingSecret.name }}
{{- printf "%s" .Values.secret.existingSecret.name -}}
@@ -33,7 +44,11 @@ Generate path in the secret store
*/}}
{{- define "secret.path" -}}
{{- if and (.Values.secret.externalSecret.enabled) (.Values.secret.externalSecret.store.path) }}
{{- if .Values.name }}
{{- printf "%s/%s-%s" .Values.secret.externalSecret.store.path .Release.Name .Values.name -}}
{{- else }}
{{- printf "%s/%s" .Values.secret.externalSecret.store.path .Release.Name -}}
{{- end }}
{{- else }}
{{ fail "No Secret Store Path Found!" }}
{{- end }}

View File

@@ -1,10 +1,9 @@
{{- include "bjw-s.common.loader.init" . }}
{{- define "cloudflared.hardcodedValues" -}}
{{ if not .Values.global.nameOverride }}
global:
nameOverride: {{ .Values.name }}
{{ end }}
nameOverride: {{ include "cloudflared.name" . }}
fullNameOverride: {{ include "cloudflared.name" . }}
controllers:
main:
type: deployment

View File

@@ -1,5 +1,5 @@
# -- Name override of release
name: cloudflared
name: ""
# -- Secret configuration
secret: