-
Notifications
You must be signed in to change notification settings - Fork 545
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
fix(olm): Fix CSVs api-servers battle for ownership of APIServices #690
fix(olm): Fix CSVs api-servers battle for ownership of APIServices #690
Conversation
d6bf7eb
to
3918d17
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.
I think we want a test to ensure that the installation of a second CSV that claims an APIService fails if there already exists a CSV that claims it (not replacing).
400238e
to
7ccc48b
Compare
/retest |
1 similar comment
/retest |
9afeeac
to
426bae3
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.
Sorry it took so long to get around to really reviewing this. This looks great and has a really thorough e2e test! Could you write one more that ensures we can't install a CSV that provides the same APIService in two separate namespaces?
I left some additional feedback on the APIServiceAdoptable
function:
426bae3
to
ec1c9cc
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.
/lgtm
/retest |
/test e2e-aws-olm |
/test unit |
6fcc261
to
f258712
Compare
Currently, CSVs that install extension api-servers battle for ownership of APIServices. New CSVs only adopt APIServices that have OwnerReferences to CSVs in the new CSV's replaces chain. Signed-off-by: Vu Dinh <[email protected]>
The owner comparison check was comparing against empty values before. This also adds some additional warnings just to be safe.
I could have sworn that when I tested this before that deleting a namespace would cause the CSV deletion handler to not run. But after testing today, it appears that is not the case. |
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.
Thank you @dinhxuanvu and @jpeeler for getting this working!
/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 |
Currently, CSVs that install extension api-servers battle for
ownership of APIServices. New CSVs only adopt APIServices that have
OwnerReferences to CSVs in the new CSV's replaces chain.
Signed-off-by: Vu Dinh [email protected]