sparse-intern-71089
05/18/2020, 10:13 PMbusy-umbrella-36067
05/18/2020, 10:15 PMdependsOn to the chart or inside the transformationsfaint-motherboard-95438
05/18/2020, 10:16 PMdependsOn in a following ComponentResource of mine which depends on the database helm chart to be fully up&runningbusy-umbrella-36067
05/18/2020, 10:18 PMfaint-motherboard-95438
05/18/2020, 10:18 PMfaint-motherboard-95438
05/18/2020, 10:18 PMbusy-umbrella-36067
05/18/2020, 10:19 PMbusy-umbrella-36067
05/18/2020, 10:19 PMfaint-motherboard-95438
05/18/2020, 10:19 PMComponentResource to be precise. I tried to depends on this “container” and also directly on the chart inside itself, both failed.busy-umbrella-36067
05/18/2020, 10:20 PMJob which loops until your DB is reachable.busy-umbrella-36067
05/18/2020, 10:20 PMfaint-motherboard-95438
05/18/2020, 10:21 PMComponentResource and Chart dependencies. I’ll try thatfaint-motherboard-95438
05/18/2020, 10:22 PMJob , will have a look, but that’s kind of “dirty” workaround I guessfaint-motherboard-95438
05/18/2020, 10:22 PMbusy-umbrella-36067
05/18/2020, 10:22 PMJobfaint-motherboard-95438
05/18/2020, 10:28 PMchart.getResource() method, trying right nowgorgeous-egg-16927
05/18/2020, 10:29 PMbusy-umbrella-36067
05/18/2020, 10:30 PMchart.getResource() as an output and that way all you would need to dependsOn is your first component
The call to registerOutputs also tells Pulumi that the resource is done registering children and should be considered fully constructed, so—although it's not enforced—the best practice is to call it in all components even if no outputs need to be registered.faint-motherboard-95438
05/18/2020, 10:34 PMgetResource() works and my component holds until the database services are up.
Will try the cleaner way with registerOutputs() right awayfaint-motherboard-95438
05/18/2020, 10:41 PMgetResource() and directly depending on the resource(s) needed in dependsOn works, registering the same resource(s) in registerOutputs() and only using the top ComponentResource as a dependency unfortunately does not work as expected.
I’ll stick to direct references the resources I need to wait for, for now. Thanks for your help !busy-umbrella-36067
05/18/2020, 10:42 PMbusy-umbrella-36067
05/18/2020, 10:42 PMdependsOn altogetherbusy-umbrella-36067
05/18/2020, 10:43 PMfaint-motherboard-95438
05/18/2020, 10:44 PMfaint-motherboard-95438
05/18/2020, 10:45 PMfaint-motherboard-95438
05/18/2020, 10:45 PM