-
Notifications
You must be signed in to change notification settings - Fork 295
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 potential panics when retrieving VSphereCluster from Cluster.spec.infrastructureRef #2505
🐛 Fix potential panics when retrieving VSphereCluster from Cluster.spec.infrastructureRef #2505
Conversation
/cherry-pick release-1.8 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.8 in a new PR and assign it to you. 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-1.7 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.7 in a new PR and assign it to you. 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. |
/assign @fabriziopandini @chrischdi |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2505 +/- ##
==========================================
+ Coverage 63.69% 63.73% +0.04%
==========================================
Files 123 123
Lines 8746 8786 +40
==========================================
+ Hits 5571 5600 +29
- Misses 2761 2767 +6
- Partials 414 419 +5 ☔ View full report in Codecov by Sentry. |
e05f383
to
2b0939d
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
ok with the requeue for now. But let's clarify and open an issue for that if we want to add a watch instead.
LGTM label has been added. Git tree hash: b7fa108e2b6cf096e5935596898e35a6e2cf532c
|
Thx! I'm leaning towards just changing the watch. I see no reason why we couldn't watch the cluster in the supervisor mode. But I want to give Naadir some time to respond /hold |
….infrastructureRef Signed-off-by: Stefan Büringer [email protected]
2b0939d
to
1b211d9
Compare
@fabriziopandini @chrischdi PTAL :) |
/test pull-cluster-api-provider-vsphere-e2e-full-main |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
/hold cancel @fabriziopandini @randomvariable an lgtm would be great :) |
@chrischdi Can you lgtm? |
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
LGTM label has been added. Git tree hash: 49251e308f8f9779fb7eb18df176778339661fe7
|
/retest |
/lgtm /retest |
/retest |
@sbueringer: #2505 failed to apply on top of branch "release-1.8":
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. |
@sbueringer: #2505 failed to apply on top of branch "release-1.7":
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. |
Given the merge conflicts I would skip cherry-picking. I mostly opened this PR because we did similar changes to CAPD. There are no reports of CAPV observing this issue. |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
To be honest. Not sure how Machines can exist before Cluster.spec.infrastructureRef is set, but given someone hit this case with CAPD (kubernetes-sigs/cluster-api#9673), I think there is no reason not to play it safe in CAPV as well.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #