helm: apply namespace default transformation
See original GitHub issueWhen I specify namespace
on a chart via pulumi it seems this only populates the Release.Namespace
template variable, whereas when running helm install --namespace <namespace>
tiller seems to actively add an metadata.namespace
entry before applying the templates to the cluster. Many charts unfortunately don’t have the Release.Namespace
variable but instead rely on the aforementioned tiller transformation.
Pulumi should apply the same transformation as default, if the namespace
attribute has been set on the component. This providers better UX, is closer to helm install
and avoids a lot of surprises for new pulumi users.
The default may be as simple as
manifest => {
manifest.metadata.namespace = this.args.namespace;
}
Corresponding slack conversation: https://pulumi-community.slack.com/archives/C84L4E3N1/p1537573095000100
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:21 (12 by maintainers)
As a workaround for now, you should be able to use a transformation to update the namespace.
To expand on @pjoe’s answer. This is what I needed to get things working:
You can find all namespaced resources with:
kubectl api-resources --namespaced=true -o name