helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Option to override namespace

Open Horkyze opened this issue 3 years ago • 6 comments

Horkyze avatar Apr 06 '21 16:04 Horkyze

helm command has an argument [--namespace] which can be used to install the chart in any namespace you desire. pay attention that helm cannot create the namespace, so you need to make sure it exists prior to the installation.

EyalZilberblum avatar Jun 17 '21 06:06 EyalZilberblum

helm can create the namespace as of Feb 2020 (https://github.com/helm/helm/pull/7648). Run: helm -n <mynamespace> upgrade --install --create-namespace fluent fluent/fluentd -f values.yml

vallard avatar Aug 11 '21 23:08 vallard

ran into issue installing into multiple namespaces.

$ helm upgrade -i fluent-bit helm/efk/fluent-bit --namespace kevin
Release "fluent-bit" does not exist. Installing it now.
Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "fluent-bit" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-namespace" must equal "kevin": current value is "simon"

simonliuxrex avatar Aug 25 '21 08:08 simonliuxrex

The need for namespaceOverride is for when one installs the chart as sub chart (or dependency) when we want the main application to be in one namespace, but fluentd/fluent-bit in anther one. If needed, I can try to create a PR for that.

assapir avatar May 01 '23 04:05 assapir

The need for namespaceOverride is for when one installs the chart as sub chart (or dependency) when we want the main application to be in one namespace, but fluentd/fluent-bit in anther one. If needed, I can try to create a PR for that.

Just run in similar issue using the chart as sub chart. Would be great to be able to override the value via values.yaml.

andreapigatto avatar May 30 '24 14:05 andreapigatto

Another one here, due to our setup we need to override namespace

Charly6596 avatar Jun 11 '24 16:06 Charly6596