What would you like to be added:
The kubectl replace with the --force option.
Why is this needed:
We want to run a Kubernetes job during deployment.
After running a job, we have to replace it with the --force option to run the same job.
There is the sync-by-replace annotation option, but this option does not run kubectl replace with the --force option.
So we may add a force-sync-by-replace annotation option to run kubectl replace with --force.
What would you like to be added: The
kubectl replace
with the--force
option.Why is this needed: We want to run a Kubernetes job during deployment. After running a job, we have to replace it with the
--force
option to run the same job. There is thesync-by-replace
annotation option, but this option does not run kubectl replace with the--force
option. So we may add aforce-sync-by-replace
annotation option to run kubectl replace with--force
.