-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Labels
chartskind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
Allow defining namespaceOverride. When installing headlamp as s subchart, where the parent chart is installing into several namespaces, there is no way how to define into which namespace the headlamp has to be installed. So it ends up in the "default" namespace.
Describe the solution you'd like
Along the headlamp.name in _helpers.tpl, create:
{{/*
Expand the namespace of the release.
Allows overriding it for multi-namespace deployments in combined charts.
*/}}
{{- define "headlamp.namespace" -}}
{{- if .Values.namespaceOverride }}
{{- .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}}
{{- else if .Release.Namespace }}
{{- .Release.Namespace | trunc 63 | trimSuffix "-" -}}
{{- else -}}
default
{{- end -}}
{{- end -}}
What users will benefit from this feature?
Multi-namespace deployment support.
Are you able to implement this feature?
Likely.
Additional context
None.
Metadata
Metadata
Assignees
Labels
chartskind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.