Open
Description
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"