-
Notifications
You must be signed in to change notification settings - Fork 551
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
Bug 2076187: Identify fail forward in csvSources #2743
Bug 2076187: Identify fail forward in csvSources #2743
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -196,80 +196,6 @@ func WithInstalledCSV(sub *v1alpha1.Subscription, csvName string) *v1alpha1.Subs | |||
return sub | |||
} | |||
|
|||
func TestSolveOperators_WithFailForward(t *testing.T) { |
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.
Removed since the changes are not done on the resolver level anymore.
92e64d7
to
dba1434
Compare
dba1434
to
e9fa146
Compare
e9fa146
to
4a20ee3
Compare
This commit undos changes to the Resolve and ResolveSteps methods and updats the csvSourceProvider to infer whether or not fail forward is enabled in a namespace. Signed-off-by: Alexander Greene <[email protected]>
4a20ee3
to
a4b2cf0
Compare
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.
Great quality of life improvement here for the resolver as we don't have to continuously add the "fail forward" boolean for resolution. Eventually we'll need to remove the concept of CSV's from the resolver package entirely as a result of the breakout but until then this look
good. One small non-blocking nit.
/lgtm
// IsFailForwardEnabled takes a namespaced operatorGroup lister and returns | ||
// True if an operatorGroup exists in the namespace and its upgradeStrategy | ||
// is set to UnsafeFailForward and false otherwise. An error is returned if | ||
// an more than one operatorGroup exists in the namespace. | ||
// No error is returned if no OperatorGroups are found to keep the resolver | ||
// backwards compatible. |
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:
// IsFailForwardEnabled takes a namespaced operatorGroup lister and returns | |
// True if an operatorGroup exists in the namespace and its upgradeStrategy | |
// is set to UnsafeFailForward and false otherwise. An error is returned if | |
// an more than one operatorGroup exists in the namespace. | |
// No error is returned if no OperatorGroups are found to keep the resolver | |
// backwards compatible. | |
// IsFailForwardEnabled takes a namespaced operatorGroup lister and returns | |
// True if an operatorGroup exists in the namespace and its upgradeStrategy | |
// is set to UnsafeFailForward and false otherwise. An error is returned if | |
// more than one operatorGroup exists in the namespace. No error is returned | |
// if no OperatorGroups are found to keep the resolver backwards compatible. |
@awgreene: All pull requests linked via external trackers have merged: Bugzilla bug 2076187 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Description of the change:
Motivation for the change:
Reviewer Checklist
/doc
[FLAKE]
are truly flaky[FLAKE]
tag are no longer flaky