Oh, actually that example is more for making http requests as a condition of readiness. If you just need to run something after a successful deployment, you should be able to run that logic inside an
apply
. e.g.
Copy code
const deployment = new k8s.apps.v1.Deployment(...);
deployment.status.apply(s => {console.log('Do some stuff')});