drone / autoscaler

Automatically adds or removes instances based on build volume
https://autoscale.drone.io
Other
193 stars 89 forks source link

Support labels in Hetzner cloud #124

Closed gzm0 closed 1 year ago

gzm0 commented 1 year ago

The current version of the Hetzner Go library (1.4.0) does not have support for labels.

We upgrade the Hetzner Go library to the latest version that still supports Go 1.12 (1.17.0).

gzm0 commented 1 year ago

Rebased and fixed conflicts after #126.

gzm0 commented 1 year ago

Seems like the tests fail because the newer Hetzner libraries expect more precise responses from the REST APIs. Maybe we can get away with mocking a level lower (i.e. just the client, not the actual rest endpoints).

I'll try to give this a shot.