-
Notifications
You must be signed in to change notification settings - Fork 6.3k
feat: add pause action for argo-rollouts #20505 #20506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add pause action for argo-rollouts #20505 #20506
Conversation
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com>
❗ Preview Environment undeploy from Bunnyshell failedSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #20506 +/- ##
=========================================
Coverage ? 55.68%
=========================================
Files ? 341
Lines ? 56997
Branches ? 0
=========================================
Hits ? 31741
Misses ? 22606
Partials ? 2650 ☔ View full report in Codecov by Sentry. |
resource_customizations/argoproj.io/Rollout/actions/discovery.lua
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM with a minor nit added.
Co-authored-by: Nitish Kumar <justnitish06@gmail.com> Signed-off-by: siddharth <sedflix@gmail.com>
@@ -0,0 +1,2 @@ | |||
obj.spec.paused = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something picked up by the Rollouts controller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's picked up by the controller.
Link to the CRD: https://github.com/argoproj/argo-rollouts/blob/master/manifests/crds/rollout-crd.yaml#L66
resource_customizations/argoproj.io/Rollout/actions/action_test.yaml
Outdated
Show resolved
Hide resolved
@@ -35,6 +39,8 @@ discoveryTests: | |||
disabled: true | |||
- name: promote-full | |||
disabled: true | |||
- name: pause | |||
disabled: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the inputPath makes me think this might have to be true, since it's already paused. But not sure what's nil means there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nil_paused
implies no "paused" spec is present in the rollout spec and hence the rollout is not paused.
Therefore, it should enabled.
@@ -47,6 +53,8 @@ discoveryTests: | |||
disabled: true | |||
- name: promote-full | |||
disabled: false | |||
- name: pause | |||
disabled: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar here, has pause condition seems to mean that it's already paused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two types of "pause" one done using "paused" in spec and one using "status". The pause in the status can be temporary and as a part of the rollout. If the rollout is paused temporarily as a part of the rollout, the user would still want to pause the rollout permanently.
Signed-off-by: siddharth <sedflix@gmail.com>
Signed-off-by: siddharth <sedflix@gmail.com>
Signed-off-by: siddharth <sedflix@gmail.com>
Is there anything I can help with to push this along? |
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com> Signed-off-by: siddharth <sedflix@gmail.com> Co-authored-by: Siddharth Yadav <siddharth.yadav@king.com> Co-authored-by: Nitish Kumar <justnitish06@gmail.com> Signed-off-by: Kanika Rana <krana@redhat.com>
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com> Signed-off-by: siddharth <sedflix@gmail.com> Co-authored-by: Siddharth Yadav <siddharth.yadav@king.com> Co-authored-by: Nitish Kumar <justnitish06@gmail.com> Signed-off-by: Oliver Gondža <ogondza@gmail.com>
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com> Signed-off-by: siddharth <sedflix@gmail.com> Co-authored-by: Siddharth Yadav <siddharth.yadav@king.com> Co-authored-by: Nitish Kumar <justnitish06@gmail.com> Signed-off-by: Lyheng <lyhengtep@gmail.com>
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com> Signed-off-by: siddharth <sedflix@gmail.com> Co-authored-by: Siddharth Yadav <siddharth.yadav@king.com> Co-authored-by: Nitish Kumar <justnitish06@gmail.com>
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com> Signed-off-by: siddharth <sedflix@gmail.com> Co-authored-by: Siddharth Yadav <siddharth.yadav@king.com> Co-authored-by: Nitish Kumar <justnitish06@gmail.com>
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com> Signed-off-by: siddharth <sedflix@gmail.com> Co-authored-by: Siddharth Yadav <siddharth.yadav@king.com> Co-authored-by: Nitish Kumar <justnitish06@gmail.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
Signed-off-by: Siddharth Yadav <siddharth.yadav@king.com> Signed-off-by: siddharth <sedflix@gmail.com> Co-authored-by: Siddharth Yadav <siddharth.yadav@king.com> Co-authored-by: Nitish Kumar <justnitish06@gmail.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
Checklist:
Closes #20505
I will raise a PR in argo-rollouts docs latter.