-
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
✨ Implement getClusterState for topology controller #5045
✨ Implement getClusterState for topology controller #5045
Conversation
Hi @killianmuldoon. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
/retest |
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.
@killianmuldoon looks great!
I have a couple of nits, most of them on comments and error variables.
The only suggestion is to use getTemplate
recently introduced by #5007 (in its current form or after renaming it to getReference
) instead of repeating convertreference + get in every place.
I still have to take a deeper look on tests, I will do ASAP
206c7e6
to
56ddf06
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.
Overall lgtm, waiting for the required const to merge or to be copied in this PR
@sbueringer PTAL
/retest |
@sbueringer I think I've met most of your requested changes here - let me know if there's red lines on the couple I decided not to take on. |
/retest |
1 similar comment
/retest |
nil, | ||
}, nil | ||
} | ||
cpInfraRef, err := getNestedRef(cp, "spec", "machineTemplate", "infrastructureRef") |
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.
@killianmuldoon Would be really good to have a new line here. Imho it just reads a lot easier with a ibt more structuring
// whether they are managed by a ClusterClass using labels. A cluster may have zero or more MachineDeployments. Zero is | ||
// expected on first reconcile. If MachineDeployments are found for the cluster Infrastructure and Bootstrap references |
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.
@killianmuldoon fyi still open (I think you might have missed a few nits :))
@sbueringer I've pushed a new version with these issues addressed (or at least I think so 😄 - PTAL |
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 you got all, just found a new one (so feel free to resolve the open conversations above). But apart from that lgtm (+/- rebase after Farizios package move PR is merged)
e6663d1
to
bc58ea2
Compare
/retest |
e4382c4
to
8805a5b
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
🥳
/lgtm 🎉 |
/retest |
8805a5b
to
278c6cc
Compare
/lgtm |
Implementation for reading the current state of a cluster managed by a ClusterClass to the cluster topology controller. This will allow the controller to see the observed state of a managed cluster and use the information during reconcilliation. Signed-off-by: killianmuldoon [email protected]
278c6cc
to
383b9d0
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
} | ||
|
||
// A Cluster may have zero or more MachineDeployments and a Cluster is expected to have zero MachineDeployments on | ||
// first reconcile. |
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.
@killianmuldoon What exactly do we mean by first reconcile? Why would the number of MachineDeployments change on nth reconcile?
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.
On the first reconcile the Machine Deployments won't have been spun up as this happens when the objects are initially created. The first reconcile - if things are working right - should be able to add the correct number of machine deployments in the spec and then the current state will come into line with the desired state as these objects are created and come online.
Implementation for reading the current state of a cluster managed
by a ClusterClass to the cluster topology controller. This will
allow the controller to see the observed state of a managed
cluster and use the information during reconcilliation.
Signed-off-by: killianmuldoon [email protected]
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 #4971