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
MGMT-15349: Don't attempt to contact spoke while unbinding a day2 host #5383
MGMT-15349: Don't attempt to contact spoke while unbinding a day2 host #5383
Conversation
If an agent is unbound while it is installing the transition will fail, but the agent spec will still have no cluster deployment reference. The agent controller should not attempt to contact the spoke cluster in this case. Previously unbinding a day-2 host that was installing could cause a panic. This patch guards against that situation. https://issues.redhat.com/browse/MGMT-15349
@carbonin: This pull request references MGMT-15349 which is a valid jira issue. 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. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5383 +/- ##
==========================================
+ Coverage 67.67% 67.91% +0.23%
==========================================
Files 226 226
Lines 33349 33582 +233
==========================================
+ Hits 22570 22806 +236
+ Misses 8745 8737 -8
- Partials 2034 2039 +5
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carbonin, filanov 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 |
@carbonin: The following test 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. |
83852f8
into
openshift:master
/cherry-pick release-ocm-2.8 |
@carbonin: new pull request created: #5388 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. |
…#5383) If an agent is unbound while it is installing the transition will fail, but the agent spec will still have no cluster deployment reference. The agent controller should not attempt to contact the spoke cluster in this case. Previously unbinding a day-2 host that was installing could cause a panic. This patch guards against that situation. https://issues.redhat.com/browse/MGMT-15349
…#5383) If an agent is unbound while it is installing the transition will fail, but the agent spec will still have no cluster deployment reference. The agent controller should not attempt to contact the spoke cluster in this case. Previously unbinding a day-2 host that was installing could cause a panic. This patch guards against that situation. https://issues.redhat.com/browse/MGMT-15349
If an agent is unbound while it is installing the transition will fail, but the agent spec will still have no cluster deployment reference. The agent controller should not attempt to contact the spoke cluster in this case.
Previously unbinding a day-2 host that was installing could cause a panic. This patch guards against that situation.
Additionally this should be covered by the agent validating webhook which prevents agents from being unbound while they are installing, but we still shouldn't crash if this does happen to slip through somehow.
List all the issues related to this PR
https://issues.redhat.com/browse/MGMT-15349
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist