steep-portugal-37539
09/10/2021, 4:38 PMopts
supposed to be handled by resources and components inside of a new component resource you are creating?
So if I pass in a provider
via opts
to the new component do I need to merge it with every sub resources’ opts ? Can the sub resource say, just have parent
specified?
Also, What is the role of passing opts
to super
?billowy-army-68599
So if I pass in a provider via opts to the new component do I need to merge it with every sub resources’ opts ?No, a component inherits all properties from the parent component. You can also pass multiple providers to a component if you're missing resource types
steep-portugal-37539
09/10/2021, 5:39 PM{parent: thisContextOfSpecificIngress, opts: specificIngressOps}
?
Will it work for just a plain function to not have to pass this info? Or does this function really need to be a class extending component resource to get the opts?
If it needs to be a component resource, i can’t conceptualize that well. Bec it is really just a helper/factory class to take in args and produce an ingress resource. It isn’t meant to be its own standalone component that is used by people. Its function is for internal usebillowy-army-68599
steep-portugal-37539
10/19/2021, 6:36 PMparent
of the ingress for the rest of the opts to be passed along?
How does a resource’s opts being configured work?
In what circumstances would I need to explicitly pass opts to a resource?