pipe-cd / pipecd

The One CD for All {applications, platforms, operations}
https://pipecd.dev
Apache License 2.0
1.09k stars 153 forks source link

Support kubectl replace with force option #5174

Closed Warashi closed 2 months ago

Warashi commented 2 months ago

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.