Skip to content

fix: add missing namespace to helm chart templates#1965

Merged
fedepaol merged 1 commit into
metallb:mainfrom
ankitm123:ankitm123.GH-1964
Jul 10, 2023
Merged

fix: add missing namespace to helm chart templates#1965
fedepaol merged 1 commit into
metallb:mainfrom
ankitm123:ankitm123.GH-1964

Conversation

@ankitm123
Copy link
Copy Markdown
Contributor

Fixes #1964

@fedepaol
Copy link
Copy Markdown
Member

Mind expanding the commit message why we need this and --namespace is not enough?

@fedepaol
Copy link
Copy Markdown
Member

Can you handle also the other resources? Such as service monitors / podmonitors / prometheusrules for example

@ankitm123
Copy link
Copy Markdown
Contributor Author

I will update the PR this weekend.

@ankitm123 ankitm123 force-pushed the ankitm123.GH-1964 branch from 9dc07de to d4f0f3f Compare July 5, 2023 11:14
Helm template, unlike helm install, does not set the namespace for namespaced resources.
This inconsistency creates issues for users who use helm template to generate the manifests, and then use other tools to apply the manifests (kubectl, terraform, argo etc)
A workaround is to add the namespace field to the metadata section.

Signed-off-by: ankitm123 <ankitmohapatra123@gmail.com>
@ankitm123 ankitm123 force-pushed the ankitm123.GH-1964 branch from d4f0f3f to 53297d8 Compare July 5, 2023 11:32
@fedepaol fedepaol enabled auto-merge July 10, 2023 15:02
@fedepaol fedepaol added this pull request to the merge queue Jul 10, 2023
Merged via the queue into metallb:main with commit 5e7f744 Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm chart templates are missing the namespace

2 participants