wet-noon-14291
07/14/2022, 9:56 PMdependsOn
work with ConfigFile
? I have two typescript classes, A and B, that both extends ComponentResource
class. In both A and B I use the ConfigFile
resource. First I create A and when creating B I set that it depends on A, but for some reason it seems like all the resources in A isn't running when B is provisioned... is that by design? Do I need to depend on the actual ConfigFile
that A creates for it to work? I thought A wouldn't be done until everything I create in the constructor of A is done.steep-toddler-94095
07/15/2022, 3:08 AMdependsOn: configFile.resources
instead of dependsOn: configFile
wet-noon-14291
07/15/2022, 6:04 AMlimited-rainbow-51650
07/15/2022, 8:32 AMConfigFile
resource, did you set your ComponentResource
subclass as its parent
in opts
?AnotherResource
will only be created when MyComponent
and all it’s child resources are created when they are properly parent
-ed.resources
seems to be what you need in the meantime:
https://github.com/pulumi/pulumi-kubernetes/issues/861#issuecomment-901862700wet-noon-14291
07/19/2022, 9:40 PMViz
it depends on my linkerd
resources (through ready
). But for some reason it doesn't work on first run since the linkerd proxy isn't injected into the viz
pods, which they should be if linkerd
was running. Commenting out viz
to remove it and then deploy again when linkerd
is already running works as expected.