Upon push I want to create a single kaniko build job, it currently works but after the job is finished it shows:
kaniko-5jbhf 0/1 Completed 0 9m13s
Yet when I run the following it just pauses indefinitely:
kubectl wait --timeout=-1s --for=condition=Completed pod/kaniko
My question can be summarized in 2 parts: 1). How can I wait for a pod/job to finish? 2). How can I remove the job after it has finished?
I have tried ttlSecondsAfterFinished but enabling feature gates in the cluster is problematic and there is no example of how to do it.