<p>When you edit a deployment to update the docker image, I need to run a one-time script which changes parts of my application database and sends an email that the rolling upgrade process is complete and the result is passed / failed.</p>
<p>Is there a hook where I can attach this script to?</p>

Devaroop
<p>No, there is no such thing in Kubernetes. Usually this should be done by CI/CD pipeline.</p>
