Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates: explicitly set resource namespaces #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pgier
Copy link

@pgier pgier commented Aug 16, 2023

We have a use case where we are generating manifests using helm template and then using kubectl apply to add them to the cluster. We can't use kubectl apply --namespace foo because helm template is generating resources for multiple namespaces, so the namespaces need to be set explicitly in the charts. This seems to be a common practice among other popular Helm charts (cert-manager, kube-prometheus-stack, etc).

@chrislin22
Copy link

Agreed. It seems that has been already used here:
https://github.com/chartmuseum/charts/blob/main/src/chartmuseum/templates/servicemonitor.yaml#L6

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.

None yet

2 participants