Skip to content

Commit fceaee2

Browse files
committed
Replace .Values.namespace with .Release.Namespace
- Update opencloud.namespace helper function to use .Release.Namespace - Update references in traefik-middleware.yaml and NOTES.txt - Mark namespace in values.yaml as deprecated Fixes opencloud-eu#10
1 parent d4f5f12 commit fceaee2

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

charts/opencloud/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The following services have been deployed:
5757
{{- if .Values.httpRoute.enabled }}
5858
IMPORTANT: This chart includes HTTPRoute resources that route traffic to the OpenCloud, Keycloak, and MinIO services.
5959
All HTTPRoutes are configured to use the Gateway named "{{ .Values.httpRoute.gateway.name }}" in the
60-
{{ if .Values.httpRoute.gateway.namespace }}{{ .Values.httpRoute.gateway.namespace }}{{ else }}{{ .Values.namespace }}{{ end }} namespace.
60+
{{ if .Values.httpRoute.gateway.namespace }}{{ .Values.httpRoute.gateway.namespace }}{{ else }}{{ include "opencloud.namespace" . }}{{ end }} namespace.
6161

6262
Make sure the Gateway exists and is properly configured to accept traffic for the following domains:
6363
- OpenCloud: {{ include "opencloud.domain" . }} (Service: {{ include "opencloud.opencloud.fullname" . }}, Port: 9200)

charts/opencloud/templates/_helpers/tpl.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,7 @@ Create a fully qualified Tika name.
143143
Return the namespace to use
144144
*/}}
145145
{{- define "opencloud.namespace" -}}
146-
{{- if .Values.namespace -}}
147-
{{- .Values.namespace -}}
148-
{{- else -}}
149146
{{- .Release.Namespace -}}
150-
{{- end -}}
151147
{{- end }}
152148

153149
{{/*

charts/opencloud/templates/gateway/traefik-middleware.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: traefik.io/v1alpha1
33
kind: Middleware
44
metadata:
55
name: add-x-forwarded-proto-https
6-
namespace: {{ .Values.namespace }}
6+
namespace: {{ include "opencloud.namespace" . }}
77
spec:
88
headers:
99
customRequestHeaders:

charts/opencloud/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# GLOBAL SETTINGS
2222
# =====================================================================
2323

24-
# Namespace to install the chart into
25-
namespace: ""
24+
# Deprecated: Namespace is now controlled by Helm (.Release.Namespace)
25+
# namespace: ""
2626
# Create the namespace if it doesn't exist
2727
createNamespace: true
2828

0 commit comments

Comments
 (0)