-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
✨ e2e Test: Ensure OwnerRefs are consistently reconciled #7606
✨ e2e Test: Ensure OwnerRefs are consistently reconciled #7606
Conversation
/test pull-cluster-api-e2e-full-main |
7c60f4f
to
91bfd4e
Compare
/hold This currently contains all of the commits required to make the test pass. Let's merge it once it's green against main. |
91bfd4e
to
6541a82
Compare
/test pull-cluster-api-e2e-full-main |
6541a82
to
4a0c675
Compare
/test pull-cluster-api-e2e-full-main |
4a0c675
to
3dab970
Compare
2ccc869
to
4e7458a
Compare
cb5ec04
to
2b18923
Compare
/test pull-cluster-api-e2e-full-main |
/retest |
2b18923
to
70d70aa
Compare
/remove-hold |
great work! |
008ea62
to
884d30b
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.
Very nice work!!
} | ||
Eventually(func() error { | ||
graph, err := clusterctlcluster.GetOwnerGraph(namespace, kubeconfigPath) | ||
Expect(err).To(BeNil()) |
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 assume we intentionally want to fail here if we get an error once? (and not retry with eventually)
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.
Yeah - actually this is running retries within the func so this is unnecessary.
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.
Looks like the test is flaky if Eventually isn't included because of different order / speed of the reconcilers.
c676f9d
to
319e024
Compare
Thx! /lgtm |
LGTM label has been added. Git tree hash: ced47f3dcd788c9c2f47c340d62eb20348adbbca
|
/test pull-cluster-api-e2e-full-main |
Signed-off-by: killianmuldoon <kmuldoon@vmware.com>
319e024
to
fef6d5c
Compare
@killianmuldoon Maybe dropping the eventually caused the errors? |
Yup - #7606 (comment) Re-running with Eventually added back in now. |
/test pull-cluster-api-e2e-full-main |
@sbueringer all green 🙂 |
Perfect! Thx /lgtm |
LGTM label has been added. Git tree hash: 118bf208054057fab42efb592da5b435277899f7
|
/lgtm Yay! 🥳 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, sbueringer 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 |
Add a new e2e test and set of helper functions to test that ownerReferences are correctly reconciled by Cluster API.
This test is designed to capture how Cluster API creates ownerReferences with a newly created Topology based Cluster using KCP + KubeadmBooststrap + Docker infrastructure.
It also tests how ownerReferences are reconciled after they've been removed and re-reconciled.
Fixes #7575