sparse-intern-71089
09/06/2019, 11:59 PMcool-egg-852
09/07/2019, 12:00 AMwhite-balloon-205
dependsOn: component
does not implicitly depend on it's children. We are considering giving it that semantic as part of https://github.com/pulumi/pulumi/issues/1743.cool-egg-852
09/07/2019, 12:29 AMcool-egg-852
09/07/2019, 12:29 AMwhite-balloon-205
.resources
- but it's a little hairy at the moment.cool-egg-852
09/07/2019, 12:30 AMwhite-balloon-205
{ dependsOn: chart.resources.apply(o => Object.values(o)) }
cool-egg-852
09/07/2019, 12:34 AMcool-egg-852
09/07/2019, 12:35 AM{ dependsOn: [...chart.resources.apply(o => Object.values(o)), someOtherResource] }
and got a type errorbitter-dentist-28132
09/07/2019, 12:35 AMconst dependsOn = certManager.resources.apply(resources => Object.keys(resources).map(key => resources[key]));
cool-egg-852
09/07/2019, 12:35 AMwhite-balloon-205
{ dependsOn: c.resources.apply(o => [someOtherResource, ...Object.values(o)]) }
bitter-dentist-28132
09/07/2019, 12:36 AMcool-egg-852
09/07/2019, 12:37 AMwhite-balloon-205
Object.values(o)
is just a slightly easier way to accomplish Object.keys(o).map(key => o[key])
.bitter-dentist-28132
09/07/2019, 12:39 AMObject.values
therecreamy-potato-29402
09/07/2019, 5:53 PMcreamy-potato-29402
09/07/2019, 5:54 PM