https://pulumi.com logo
Title
c

curved-kitchen-24115

02/09/2023, 12:52 AM
👋🏼 I've a helm chart setup to be installed / updated as part of a
pulumi up
. That helm chart results in a DaemonSet and a Deployment. I'd like to trigger a rollout of the Deployment after the helm chart applies. I feel like I may be able to achieve this with Server-Side Apply, but I'm failing to see how. If anyone has any pointers I'd be very grateful !
For a little more detail; the update doesn't tend to touch the
deployment.spec.template
; so k8s doesn't trigger the rollout for me. The main change tends to be in annotations on service accounts; so I'm looking for something more generic like running
kubectl rollout deployment foo
as a "hook". I'm fine with it running after each apply / update in this case.
Also, I'm
using k8s.helm.v3.Release
.
b

brash-gigabyte-81569

02/09/2023, 1:52 PM
I use the local command like this example for a similar use case https://github.com/pulumi/pulumi-command#graceful-cleanup-of-workloads-in-a-kubernetes-cluster
c

curved-kitchen-24115

02/09/2023, 10:35 PM
thanks for the suggestion Matt, I looked at
@pulumi/command
and this stood out to me in the manual: https://github.com/pulumi/pulumi-command/issues/20 Specifically I feel that without
update
I can't get what I want? https://github.com/pulumi/pulumi-command/issues/20#issuecomment-1423469227 Have you found command to be more flexible than the docs suggest in this regard?
b

brash-gigabyte-81569

02/09/2023, 10:39 PM
I used it for cleaning up k8s resources on delete but I did see an
Update
field in there and assumed it would work
c

curved-kitchen-24115

02/09/2023, 10:39 PM
neat - I'll poke now - thanks! Keen reminder to look at the code, not just the docs 🧐
b

brash-gigabyte-81569

02/09/2023, 10:40 PM
code never lies 🙂
c

curved-kitchen-24115

02/09/2023, 10:42 PM
yup, update is there. Ty @brash-gigabyte-81569
b

brash-gigabyte-81569

02/09/2023, 10:42 PM
no prob