cool-family-40769
04/17/2024, 3:20 PMpulumi/actions
for CI/CD but rather "dedicated scripts"). Not sure it's even possible to detect which parts of the stack got updated (to publish "new frontend available" notif only on the actual frontend deployment update, and not other parts of the stack update).
2. Hack with deployment.status.apply(() => ...magic...)
Not sure how to precisely detect what exactly changed/was updated (is full rolling update done or just a few instances etc.).
3. Combination of Deployment
& Job
with "dependsOn" on the specific deployment.
This might actually work but haven't tested yet... One thing I dislike about this approach is it would pollute k8s stack with jobs that do not really need to exist as part of k8s stack IMO.
4. Pulumi cloud webhooks
This might actually work as well but haven't tested it yet. Event filtering documentation (https://www.pulumi.com/docs/pulumi-cloud/webhooks/#event-filtering) makes me think it's doable but there is no info about what kind of payloads are to be received by the webhooks (is it possible to actually figure out that the deployment "A" was just successfully updated and "B" was left untouched?).red-match-15116
04/17/2024, 3:31 PMcool-family-40769
04/17/2024, 3:37 PMred-match-15116
04/17/2024, 3:40 PMcool-family-40769
04/17/2024, 3:43 PMred-match-15116
04/17/2024, 3:45 PMcool-family-40769
04/17/2024, 3:51 PMred-match-15116
04/17/2024, 4:05 PMred-match-15116
04/17/2024, 4:07 PMred-match-15116
04/17/2024, 4:08 PMcool-family-40769
04/17/2024, 4:10 PMcool-family-40769
04/17/2024, 4:22 PMpulumi up/down/cancel/whatever
or does that "command logic" have to be "rewritten" inside of "custom automation script"?red-match-15116
04/17/2024, 4:29 PMcool-family-40769
04/17/2024, 4:54 PMpulumi/action
does not support "user-provided automation API scripts". If I decide to go the automation API script route, I'd either have to say goodbye to automatic PR functionality (pulumi deployment comments etc.) or implement it by myself 🤔cool-family-40769
04/17/2024, 10:59 PMred-match-15116
04/17/2024, 11:02 PM