Yeah, we added logic to set the namespace on all resources for our helm.Chart implementation. As you note, the upstream behavior only sets that if the
{{.Release.Namespace}}
template exists on the resource.
Can you open an issue to discuss further? I’m not sure if we’ll want to deviate from upstream behavior on the helm.Release. Furthermore, that was implemented in Chart using transformations, so I’m not 100% sure it’ll be possible in its current form.
gorgeous-egg-16927
09/27/2021, 9:56 PM
Although perhaps the post-renderer would be an option there.
Definitely still useful to be able to manipulate charts and it's interesting that flux and spinnaker provide an escape hatch for namespaces; not sure how they do it without digging.
s
sparse-park-68967
09/27/2021, 10:55 PM
Agreed. This is definitely towards the top of the priority list with helm release we would like to address. I will explore how flux/spinnaker handle this
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.