-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
DigitalOcean: Implement TemplateNodeInfo in DO cloud provider CA to support scaling up from zero #7840
base: master
Are you sure you want to change the base?
DigitalOcean: Implement TemplateNodeInfo in DO cloud provider CA to support scaling up from zero #7840
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dylanrhysscott The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @dylanrhysscott! |
Hi @dylanrhysscott. 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. |
/ok-to-test |
afe9b9c
to
6d0108d
Compare
Tested GPU scale up from zero with new taints in template and everything now works correctly - have pushed the code change but am waiting on a new godo version release to finalise this PR |
6d0108d
to
385a427
Compare
clusterID string | ||
client nodeGroupClient | ||
nodePool *godo.KubernetesNodePool | ||
nodePoolTemplate *godo.KubernetesNodePoolTemplateResponse |
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.
This looks a bit inconsistent. This should rather be a KubernetesNodePoolTemplate
instead of the rpc response type.
s := "" | ||
for ; workerID > 0; workerID = workerID / customAlphabetSize { | ||
s = string(customAlphabet[workerID%customAlphabetSize]) + s | ||
} |
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 can't quite follow the logic of this. The worker ID seems to be intended to be something dynamic.
However the only call I can find is for the worker ID to be 1
.
If you just want to create a random fixed size string suffix from a defined charset, you could follow something like this https://www.calhoun.io/creating-random-strings-in-go/
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR updates the DigitalOcean cloud provider implementation to support the
TemplateNodeInfo()
method which can be utilised by cluster autoscaler to scale up node groups from zeroWhich issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: