Is there a way I wait for a pod to complete in pul...
# kubernetes
m
Is there a way I wait for a pod to complete in pulumi k8s? I need to set up a docker image before starting corresponding pods. The image is built by kaniko which is a pod.
s
So there's a job that's running, and you need to wait for it to complete because that pod is building an image you need to deploy as additional k8s resources?
m
Right.
s
Is the job itself a Pulumi resource?
m
I am building a Tekton pipeline, and needs a “bootstrap” image as the base image for all following pods. The job itself is a Pulumi resource. I have noticed that pulumi will not wait for its completion.
m
Oh it is experimental… Not sure we are ok to use it, but definitively what I needed.
h
if you create the pod via a job it’ll wait for it to complete automatically https://www.pulumi.com/registry/packages/kubernetes/api-docs/batch/v1/job/