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 common-instancetypes func tests with HCO #952
base: main
Are you sure you want to change the base?
Fix common-instancetypes func tests with HCO #952
Conversation
Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
This change explicitly disables common-instancetype deployment during our tests in environments deployed by HCO to avoid the virt-operator and ssp-operator from fighting over ownership. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
This change adds basic coverage when SSP is deployed by HCO with the FG disabled. Asserting that SSP does not reclaim ownership from virt-operator of any common-instancetype resources. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Quality Gate passedIssues Measures |
/retest-required |
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.
Not sure this is the right approach. Can't we make sure to set the appropriate FGs during the tests and reset them to their original value after the tests ran? The functionality is there and a user could still choose to enable it by modifying the FGs with jsonpatch annotations on HCO's CR.
Of course this won't work if HCO keeps reconciling them, but I don't think the test is at fault when HCO interferes with it.
Yeah fair point, with HCO disabled we can just disable the KV FG for virt-operator deployment in a /hold |
@lyarwood: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/cc @0xFelix
What this PR does / why we need it:
The functional tests currently assume that SSP is deployed standalone without HCO. However these same tests are also used downstream in a slightly different context where we initially deploy the environment using HCO. As such the common-instancetypes tests are invalid and need to be skipped. This series adds some limited coverage for this scenario ensuring that SSP ignores the virt-operator deployed resources.
More comprehensive coverage needs to be added to HCO to assert the default behaviour of virt-operator and ssp-operator in environments where HCO is still actively reconciling both.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: