-
Notifications
You must be signed in to change notification settings - Fork 93
Implement scaleway driver #45
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
Conversation
|
I worked it out: I was using outdated vendored packages locally, which explains why it only failed in CI on fresh pull |
5ade488 to
ed320e8
Compare
|
I have reworked the way that this destroys old servers, hence the repeated changes, but I think the logic is simple and stable now |
tboerger
left a comment
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.
You should not panic at all.
I agree. I was being consistent with other drivers in this case. Given the function signature doesn't handle errors, what else could/should I do? |
|
IMHO you should check that within the New func and error out. |
|
Option errors are checked and handled gracefully now |
a84c912 to
7c5d984
Compare
|
this looks good to me, just needs to be updated to use go modules. Also when we merge, if you don't mind, submit an entry to configure for Scaleway at https://github.com/drone/autoscaler-docs :) |
|
Looks like your choosen default values aren't that great, the autoscaler always fails for C1 and ARM64-2GB instances, local boot mode is not possible. |
|
The image/size combo is a bit complicated. As default it should work with amd64. You have to change the image if you change the arch, location or size |
|
Looks like I got to create a PR to fix the options, https://github.com/drone/autoscaler/blob/master/drivers/scaleway/create.go#L35 this hard-coded value doesn't work for the arm32/arm64 images. I don't need scaleway for amd64 nodes, I need it only for arm32/arm64. |
|
while we're on the topic, it would be great to have some docs for Scaleway at https://github.com/drone/autoscaler-docs 😄 |
|
#55 will fix my issues with the Scaleway implementation, after that I can prepare a PR that documents this provider. |
|
I started a branch for documenting this, but I haven't had time to finish it. You're welcome to use it as a base |
|
Hi ! |
This is WIP, but works in it's current state. Tests to follow.
Scaleway is one of the only providers that support ARM architecture VMs which we are in need of, so we decided this was the right approach