When I write a `Component`, do I need to propagate...
# general
i
When I write a
Component
, do I need to propagate the
providers
in
opts
to the children or is that handled automatically? I’m testing locally with an empty
$HOME/.kube/config
to expose these areas where I have mishandled providers.
m
If you pass it through to one component, it becomes the default for all subsequent children of that component.
i
Then it may be a bug with a child that is CustomResource, adding logging now to find out.
m
You're calling
super()
with
opts
in the parent component in which you expect children to use the provider for right?
i
yes
m
Hmm, yeah has worked as expected for me with `pulumi.ComponentResource`'s at least.
i
opts not passed to custom resource inside component
Here’s a gist, the child
Certificate
gets nothing https://gist.github.com/rosskevin/085e4aebce19e0185dddd8069b13cfff
haha
oh - missed
parent
yep, it wasn’t parented.