Replies: 3 comments 1 reply
-
@mlewiarz rollout has a plugin that you can use https://argoproj.github.io/argo-rollouts/features/kubectl-plugin/ |
Beta Was this translation helpful? Give feedback.
-
I wrote that I don't want to use kubectl plugin :) |
Beta Was this translation helpful? Give feedback.
-
Hello @mlewiarz , It is already possible. Argo CD allows to interact with K8S resource using Resource Actions. Rollouts actions are bundled by default. You can use the following command to promote rollout:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I would like to be able to promote/abort rollout through some API from my Gitlab CI jobs.
I found in docs that I can only use dashboard or kubectl plugin.
For me both ways din't meet my needs so I used patches from plugin source code, it looks like:
argocd app patch-resource $APP_NAME --kind Rollout --resource-name $ROLLOUT_NAME --patch '{"status":{"abort":true}}' --patch-type 'application/merge-patch+json'
and
argocd app patch-resource $APP_NAME --kind Rollout --resource-name $ROLLOUT_NAME--patch '{ "spec": { "paused": false }, "status": { "pauseConditions": null } }' --patch-type 'application/merge-patch+json'
But it won't work from versions >0.9.0 so I'm stuck.
Maybe you can add to argocd CLI possibility to promote/abort or to dashboard some API?
Beta Was this translation helpful? Give feedback.
All reactions