Skip to content

namespaceOverride support #3910

@rstribrn

Description

@rstribrn

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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions