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 1784024: Use generations to prevent duplicate InstallPlans #1316
Bug 1784024: Use generations to prevent duplicate InstallPlans #1316
Conversation
@njhale: This pull request references Bugzilla bug 1784024, which is invalid:
Comment 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. |
/bugzilla refresh |
@njhale: This pull request references Bugzilla bug 1784024, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 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. |
/retest |
2893037
to
4f102a8
Compare
Adds generation field to InstallPlans and Subscriptions to match resolved content and avoid re-resolution. Fixes an issue where duplicate InstallPlans are created when more than one catalog provides dependency operators.
4f102a8
to
f998071
Compare
/retest |
3 similar comments
/retest |
/retest |
/retest |
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
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold this failure is concerning. Investigating... |
f998071
to
7315bb3
Compare
@@ -813,12 +818,12 @@ func (o *Operator) syncResolvingNamespace(obj interface{}) error { | |||
} | |||
} | |||
|
|||
installPlanReference, err := o.ensureInstallPlan(logger, namespace, subs, installPlanApproval, steps, bundleLookups) | |||
installPlanReference, err := o.ensureInstallPlan(logger, namespace, maxGeneration+1, subs, installPlanApproval, steps, bundleLookups) |
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.
can this use updatedSubs
instead of subs
?
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.
It's probably best to use subs
since we want to apply OwnerReferences
to the generated InstallPlan
referencing all Subscriptions
in the namespace. I think we also want to use subs
a few lines below for the Subscription
update so they point to the latest InstallPlan
.
I'm probably missing some edge case though; e.g. bad Subscriptions
should reference the latest InstallPlan
.
/retest |
7315bb3
to
b5efd3b
Compare
b1a033f
to
a27f3d9
Compare
/hold cancel |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dinhxuanvu, ecordell, njhale 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
@njhale: All pull requests linked via external trackers have merged. Bugzilla bug 1784024 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. |
/cherry-pick release-4.4 |
@ecordell: new pull request created: #1335 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. |
Supersedes #1203