-
Notifications
You must be signed in to change notification settings - Fork 2
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
ROX-12219: Add support for pause-reconcile annotation #29
Conversation
ReasonUninstallSuccessful = status.ConditionReason("UninstallSuccessful") | ||
ReasonPauseReconcileAnnotationSet = status.ConditionReason("PauseReconcileAnnotationSet") |
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.
ReasonUninstallSuccessful = status.ConditionReason("UninstallSuccessful") | |
ReasonPauseReconcileAnnotationSet = status.ConditionReason("PauseReconcileAnnotationSet") | |
ReasonUninstallSuccessful = status.ConditionReason("UninstallSuccessful") | |
ReasonPauseReconcileAnnotationSet = status.ConditionReason("PauseReconcileAnnotationSet") |
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.
nit: WDYTH renaming ReasonPauseReconcileAnnotationSet
to ReasonPauseReconcileAnnotationPresent
?
The Set
in the end sounds to me like an action which happens.
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 only problem is that mere presence does not cause this. The value needs to be true. I renamed to ReasonPauseReconcileAnnotationTrue
.
Please let me know what you think.
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.
FTR, this is the reason why stackrox/stackrox#2953 tests are failing.
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.
Good job!
@porridge my review is finished, just some nits on naming. I think your review already covers the most important parts.
ReasonUninstallSuccessful = status.ConditionReason("UninstallSuccessful") | ||
ReasonPauseReconcileAnnotationSet = status.ConditionReason("PauseReconcileAnnotationSet") |
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.
nit: WDYTH renaming ReasonPauseReconcileAnnotationSet
to ReasonPauseReconcileAnnotationPresent
?
The Set
in the end sounds to me like an action which happens.
Expect(err).To(BeNil()) | ||
}) | ||
|
||
By("getting the CR", func() { |
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.
By("getting the CR", func() { | |
By("getting the CR verify the reconciler is paused", func() { |
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.
Sorry, I cannot parse your suggestion.
Expect(err).To(BeNil()) | ||
}) | ||
|
||
By("verifying the release is uninstalled", func() { |
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.
By("verifying the release is uninstalled", func() { | |
By("verifying reconciliation unpaused and the release is uninstalled", func() { |
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.
Well, we don't actually check the status here, so I'd leave this as is...
FTR, I changed base branch from |
17b3f45
to
2985fab
Compare
ReasonUninstallSuccessful = status.ConditionReason("UninstallSuccessful") | ||
ReasonPauseReconcileAnnotationSet = status.ConditionReason("PauseReconcileAnnotationSet") |
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 only problem is that mere presence does not cause this. The value needs to be true. I renamed to ReasonPauseReconcileAnnotationTrue
.
Please let me know what you think.
Expect(err).To(BeNil()) | ||
}) | ||
|
||
By("getting the CR", func() { |
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.
Sorry, I cannot parse your suggestion.
Expect(err).To(BeNil()) | ||
}) | ||
|
||
By("verifying the release is uninstalled", func() { |
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.
Well, we don't actually check the status here, so I'd leave this as is...
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
Implemented support for customizable "pause-reconcile" annotation, and added unit tests.