-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add support for node pool placement group config #6999
Add support for node pool placement group config #6999
Conversation
Welcome @dominic-p! |
Hi @dominic-p. Thanks for your PR. I'm waiting for a kubernetes 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-sigs/prow repository. |
Friendly bump. Is there anything I can do to polish this PR or help with the review process? |
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.
Hey,
thanks for opening the PR and sorry for the long wait ^^ It mostly works, a few go syntax issues and you also have to add the placement groups to the server creation request:
hetzner_node_group.go:449
opts := hcloud.ServerCreateOpts{
...
PlacementGroup: n.placementGroup,
}
cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go
Outdated
Show resolved
Hide resolved
cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go
Outdated
Show resolved
Hide resolved
cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go
Outdated
Show resolved
Hide resolved
cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go
Outdated
Show resolved
Hide resolved
cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go
Outdated
Show resolved
Hide resolved
Thank you so much for the review! I believe I have implemented all of your suggested changes. Let me know what you think. I'm seeing a ton of errors in the CI tests, but they don't seem to be relevant to this PR. It's hard for me to say though. |
One of the files is not properly formatted, that causes the CI failure in
(And yes, most of the issues in the output are not relevant to this PR and the important line is very easy to miss) |
Ok, it looks like the tests are passing now. If we do wind up with a placement group that would be too large, the error message is maybe a little less readable now (it will reference placement group IDs instead of names). But, this seemed like the cleanest way to solve the problems. Let me know if you would prefer a different approach. |
/approve Thank you very much @dominic-p! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: apricote, dominic-p 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 |
/lgtm |
You are very welcome, and thank you for being so patient with me as I tried to learn go for this PR. :) |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds support for specifying a placement group for a node pool using the
HCLOUD_CLUSTER_CONFIG
JSON. This is a nice feature to have because it allows you to spread a node pool's VMs over different physical hardware, increasing the overall resilience of the pool.Which issue(s) this PR fixes:
Fixes #5919
Special notes for your reviewer:
This is the first go code that I have written, so I apologize if it's a total mess. Also, I'm not sure how to setup a dev/testing environment for this project, so I was not able to actually run this code to test it.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: