-
Notifications
You must be signed in to change notification settings - Fork 16.9k
[stable/metrics-server] cannot accept a namespace when templating #17909
Comments
@mcristina422 + @bblenard I saw you in the |
Example of how we do it for OpenFaaS: https://github.com/openfaas/faas-netes/blob/master/chart/openfaas/templates/gateway-dep.yaml#L12 |
The chart doesn't support templating of the namespace yet helm/charts#17909 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
@alexellis taking a look at all the charts in this repo it seems like most resources do not specify the namespace I guess a workaround is |
Thank you for the workaround, I'll try it. I know cert-manager does this, at least in their upstream. |
@alexellis I also checked around the repo for charts that specify namespace but didn't see any. I'm not sure if makes sense to be able to specify namespace in the values file. Does @mcristina422's suggestion not work for your use case? |
The chart doesn't support templating of the namespace yet helm/charts#17909 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
Describe the bug
A clear and concise description of what the bug is.
I would expect to be able to download and render this chart into YAML files and then apply them into the namespace given when rendering.
I didn't see
kube-system
in the Deployment, but I do see it there when runninghelm install
withtiller
For the OpenFaaS chart, we include the namespace in the templates to cover this scenario.
Version of Helm and Kubernetes:
The following questions are mentioned above, free-form. Hope that is OK.
Which chart:
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
I would see the template changing:
From:
To something like:
Please could someone provide input?
The text was updated successfully, but these errors were encountered: