Skip to content

[opentelemetry-operator] allow for overriding namespace in values file #1755

Open
@CharlieTLe

Description

@CharlieTLe

The operator helm chart only uses the .Release.Namespace. When the helm chart is used as a sub chart, it's not possible to deploy it in a separate namespace.

We should be able to do something like

{{/*
Allow the release namespace to be overridden
*/}}
{{- define "opentelemetry-operator.namespace" -}}
  {{- if .Values.namespaceOverride -}}
    {{- .Values.namespaceOverride -}}
  {{- else -}}
    {{- .Release.Namespace -}}
  {{- end -}}
{{- end -}}

and then override it in the values file like

# Top level field indicating an override for the namespace
namespaceOverride: "opentelemetry-operator-system"

Metadata

Metadata

Assignees

No one assigned

    Labels

    chart:operatorIssue related to opentelemetry-operator helm chartenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions