From ac914b50eecc5f42ee02f1e22f46012424826fc0 Mon Sep 17 00:00:00 2001 From: Aleksey Sviridkin Date: Fri, 22 Mar 2024 13:01:49 +0400 Subject: [PATCH] Update chart version and add option to disable defaiult 404 Signed-off-by: Aleksey Sviridkin --- charts/cloudflare-tunnel/Chart.yaml | 2 +- charts/cloudflare-tunnel/templates/configmap.yaml | 2 ++ charts/cloudflare-tunnel/values.yaml | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/cloudflare-tunnel/Chart.yaml b/charts/cloudflare-tunnel/Chart.yaml index a3b61d1..5644d54 100644 --- a/charts/cloudflare-tunnel/Chart.yaml +++ b/charts/cloudflare-tunnel/Chart.yaml @@ -10,7 +10,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.3.0 +version: 0.4.0 # 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 diff --git a/charts/cloudflare-tunnel/templates/configmap.yaml b/charts/cloudflare-tunnel/templates/configmap.yaml index 07d5219..e99bf4d 100644 --- a/charts/cloudflare-tunnel/templates/configmap.yaml +++ b/charts/cloudflare-tunnel/templates/configmap.yaml @@ -25,5 +25,7 @@ data: {{- with .Values.cloudflare.ingress }} {{- toYaml . | nindent 6 }} {{- end }} + {{ if .Values.cloudflare.enableDefault404 }} # This rule matches any traffic which didn't match a previous rule, and responds with HTTP 404. - service: http_status:404 + {{ end }} diff --git a/charts/cloudflare-tunnel/values.yaml b/charts/cloudflare-tunnel/values.yaml index 64a9a41..0d21d28 100644 --- a/charts/cloudflare-tunnel/values.yaml +++ b/charts/cloudflare-tunnel/values.yaml @@ -25,6 +25,8 @@ cloudflare: # in the connection from cloudflared to your local service, not from the internet to cloudflared. # - hostname: hello.example.com # service: hello_world + # If true, enable the default 404 page. Needs to be false if you want to use a '*' wildcard rule. + enableDefault404: true image: repository: cloudflare/cloudflared @@ -58,7 +60,7 @@ securityContext: allowPrivilegeEscalation: false capabilities: drop: - - ALL + - ALL readOnlyRootFilesystem: true resources: {}