sparse-intern-71089
05/16/2019, 11:08 PMimportant-leather-28796
05/16/2019, 11:08 PMconst apiConfig = new Config('api')
export const api = new Api(
{
...commonArgs,
wildcardCertificate,
replicas: apiConfig.getNumber('replicas'),
},
opts({ dependsOn: [apiCredentials, apiSecret, namespace, wildcardCertificate] }),
)
const webConfig = new Config('web')
export const web = new Web(
{
...baseArgs,
wildcardCertificate,
replicas: webConfig.getNumber('replicas'),
},
opts({ dependsOn: [api] }),
)important-leather-28796
05/16/2019, 11:08 PMimportant-leather-28796
05/16/2019, 11:09 PMimportant-leather-28796
05/16/2019, 11:11 PMapi that continued to run because it was never successfully update and caused a bunch of errors due to the front end being out of syncimportant-leather-28796
05/16/2019, 11:13 PMdependsOn just waiting on successfully updating the spec?
If so, how can I wait on actually success of the api rollout?white-balloon-205
Api and Web in this example? Are they custom components? What do you use in the implementation of those? (Awsx.ecs.service?)white-balloon-205
important-leather-28796
05/17/2019, 3:53 PMimportant-leather-28796
05/17/2019, 3:55 PMdependsOn inside the component as long as the deployment/service/ingress were all parentedimportant-leather-28796
05/17/2019, 3:56 PMimportant-leather-28796
05/17/2019, 3:59 PM"@pulumi/pulumi": "^0.17.8"white-balloon-205
My understanding is that I did not need to propagate theThis certainly was not true up until recently. We did some work to try to make it true, but I recall it ran into issues and had to be rolled back. I think we landed a modified version of this recently. @lemon-spoon-91807 can hopefully confirm.inside the component as long as the deployment/service/ingress were all parenteddependsOn
lemon-spoon-91807
05/17/2019, 8:07 PMlemon-spoon-91807
05/17/2019, 8:08 PMlemon-spoon-91807
05/17/2019, 8:08 PMdependsOn: ... valuelemon-spoon-91807
05/17/2019, 8:09 PMlemon-spoon-91807
05/17/2019, 8:10 PMlemon-spoon-91807
05/17/2019, 8:10 PMlemon-spoon-91807
05/17/2019, 8:11 PMdependsOn the awsx component and have that be meaningless. Now, that will do "the right thing" and cause you to actually depend on the underlying aws resource.lemon-spoon-91807
05/17/2019, 8:11 PMlemon-spoon-91807
05/17/2019, 8:12 PMlemon-spoon-91807
05/17/2019, 8:13 PMlemon-spoon-91807
05/17/2019, 8:13 PMimportant-leather-28796
05/17/2019, 9:46 PMspecifically, if you have a component resource built out of several other components and several other custom resources, then you can now just depend on that top-level compoent resource, and it will transitively pick up (through parent/child relationships) all the leaf custom resourcesThis is what did not happen. Pulumi updated the
api spec deployment, the replica set was created but did not successfully achieve ready/live, and the update moved on to the rest of the components that depend on api. The cli returned 0. The system was stuck with the old replicaset running, the new replicaset failing, but no indication to us through pulumi.lemon-spoon-91807
05/17/2019, 9:46 PMlemon-spoon-91807
05/17/2019, 9:46 PMimportant-leather-28796
05/17/2019, 9:47 PMlemon-spoon-91807
05/17/2019, 9:47 PMlemon-spoon-91807
05/17/2019, 9:47 PMimportant-leather-28796
05/17/2019, 9:48 PMapi Deployment rolling updatelemon-spoon-91807
05/17/2019, 9:48 PMlemon-spoon-91807
05/17/2019, 9:49 PMlemon-spoon-91807
05/17/2019, 9:49 PMlemon-spoon-91807
05/17/2019, 9:50 PMimportant-leather-28796
05/17/2019, 9:50 PMweb dependsOn api, top commentlemon-spoon-91807
05/17/2019, 9:50 PMimportant-leather-28796
05/17/2019, 9:50 PMlemon-spoon-91807
05/17/2019, 9:50 PMimportant-leather-28796
05/17/2019, 9:50 PMlemon-spoon-91807
05/17/2019, 9:51 PMimportant-leather-28796
05/17/2019, 9:51 PMlemon-spoon-91807
05/17/2019, 9:51 PMsowebdependsOn, top commentapi
lemon-spoon-91807
05/17/2019, 9:51 PMlemon-spoon-91807
05/17/2019, 9:52 PMimportant-leather-28796
05/17/2019, 9:52 PMlemon-spoon-91807
05/17/2019, 9:56 PMlemon-spoon-91807
05/17/2019, 9:56 PMimportant-leather-28796
05/17/2019, 9:57 PM"@pulumi/kubernetes": "^0.22.2",
"@pulumi/pulumi": "^0.17.8"lemon-spoon-91807
05/17/2019, 9:57 PMlemon-spoon-91807
05/17/2019, 9:58 PMlemon-spoon-91807
05/17/2019, 9:58 PMlemon-spoon-91807
05/17/2019, 9:59 PMlemon-spoon-91807
05/17/2019, 9:59 PMlemon-spoon-91807
05/17/2019, 9:59 PMlemon-spoon-91807
05/17/2019, 9:59 PMimportant-leather-28796
05/17/2019, 10:00 PMlemon-spoon-91807
05/17/2019, 10:00 PMlemon-spoon-91807
05/17/2019, 10:00 PMlemon-spoon-91807
05/17/2019, 10:00 PMimportant-leather-28796
05/17/2019, 10:00 PMlemon-spoon-91807
05/17/2019, 10:01 PMlemon-spoon-91807
05/17/2019, 10:01 PMlemon-spoon-91807
05/17/2019, 10:02 PMthe replica set generated by k8s from theapirolling updateDeployment
lemon-spoon-91807
05/17/2019, 10:02 PMlemon-spoon-91807
05/17/2019, 10:02 PMlemon-spoon-91807
05/17/2019, 10:02 PMlemon-spoon-91807
05/17/2019, 10:02 PMlemon-spoon-91807
05/17/2019, 10:02 PMlemon-spoon-91807
05/17/2019, 10:02 PMlemon-spoon-91807
05/17/2019, 10:03 PMimportant-leather-28796
05/17/2019, 10:03 PMlemon-spoon-91807
05/17/2019, 10:03 PMlemon-spoon-91807
05/17/2019, 10:04 PMlemon-spoon-91807
05/17/2019, 10:04 PMimportant-leather-28796
05/17/2019, 10:04 PMlemon-spoon-91807
05/17/2019, 10:04 PMimportant-leather-28796
05/17/2019, 10:04 PMlemon-spoon-91807
05/17/2019, 10:04 PMlemon-spoon-91807
05/17/2019, 10:04 PMimportant-leather-28796
05/17/2019, 10:05 PMimportant-leather-28796
05/20/2019, 7:23 PMimportant-leather-28796
05/20/2019, 7:23 PMlemon-spoon-91807
05/20/2019, 7:23 PMimportant-leather-28796
05/20/2019, 7:24 PM2.0 sample image, it exits 1 on start and pulumi behavior is as expected, api fails and web failsimportant-leather-28796
05/20/2019, 7:24 PMlemon-spoon-91807
05/20/2019, 7:25 PMimportant-leather-28796
05/20/2019, 7:26 PMimportant-leather-28796
05/20/2019, 7:31 PMlemon-spoon-91807
05/20/2019, 7:31 PMlemon-spoon-91807
05/20/2019, 7:31 PMimportant-leather-28796
05/20/2019, 7:31 PMlemon-spoon-91807
05/20/2019, 7:32 PMlemon-spoon-91807
05/20/2019, 7:32 PMimportant-leather-28796
05/20/2019, 7:33 PMlemon-spoon-91807
05/20/2019, 7:33 PMimportant-leather-28796
05/20/2019, 7:33 PM