https://pulumi.com logo
#general
Title
# general
i

important-leather-28796

03/14/2019, 3:26 PM
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

millions-judge-24978

03/14/2019, 3:29 PM
If you pass it through to one component, it becomes the default for all subsequent children of that component.
i

important-leather-28796

03/14/2019, 3:30 PM
Then it may be a bug with a child that is CustomResource, adding logging now to find out.
m

millions-judge-24978

03/14/2019, 3:31 PM
You're calling
super()
with
opts
in the parent component in which you expect children to use the provider for right?
i

important-leather-28796

03/14/2019, 3:32 PM
yes
m

millions-judge-24978

03/14/2019, 3:32 PM
Hmm, yeah has worked as expected for me with `pulumi.ComponentResource`'s at least.
i

important-leather-28796

03/14/2019, 3:33 PM
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.