Command to force new deployment in helm?

Viewed 22

I use gitlab + kubernetes.

I use this command:

helm secrets -d vault upgrade --install --atomic --namespace NAMESPACE --values VALUES.yml --set image.tag="WHATEVER" DEPLOYMENT_NAME FILE_TO_THIS_DEPLOYMENT

the moment the CI pipeline fails i cannot restart it again, because of some Kubernetes/Helm errors:

another operation (install/upgrade/rollback) is in progress

I know that i can just fix this inside kubernetes and then i can rerun, but this is just a shitty experience for people who dont know that much about Kubernetes/Helm.

Is there a one-shot command which is just really deploying a new version and if the old version was somehow in a failing state, delete/fix it beforehand?

I really just want to execute the same commands again and again and just expect it to work without manually fixing kubernetes state everytime anything happens.

0 Answers
Related