late-balloon-24601
01/29/2025, 5:34 PMv4.Chart
does not inherit providers defined by the opts of a parent ComponentResource. I'm guessing this is because v4.Chart
is in itself a ComponentResource. Does that mean we need to use pulumi.mergeOptions
? It's pretty unexpected behaviour so I'm unsure if it's intendedlate-balloon-24601
01/29/2025, 5:42 PMlate-balloon-24601
01/29/2025, 7:15 PMtransforms
in one of the parent ComponentResources to inject tags seems to fix the provider inheritence. This is bizarre, having a transforms
breaks providers for only ComponentResource based pulumi/kubernetes resources? This makes zero sense. That transform doesn't even touch optslate-balloon-24601
01/29/2025, 7:39 PMhelm.v4.Chart
resource through a transforms
that's defined on a parent ComponentResource causes it to lose references to the parent and its providers.
This screenshot is rather messy, but shows:
• The helm.v4.Chart
being defined with a parent
opt set (this
refers to the ComponentResource that the chart lives in, which has a transforms
to add tags and defines providers in a providers
array passed as an opt)
• The breakpoint has hit in the parent ComponentResource transform
function, showing that the chart resource has no parent
or providers
in its opts
As part of debugging this I disabled default providers, so if I continue from the breakpoint, it errors out because it tries to instantiate a default kube provider.late-balloon-24601
01/29/2025, 7:43 PMComponentResource
and its set providersNo 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.
Powered by