Commit Graph

28 Commits

Author SHA1 Message Date
Timo Reimann 05e2011096 digitalocean: support reading access token from file
This makes it possible to securely store the access token in a file and
load it into the cloud provider from there.

Document DigitalOcean's cloud config format while we are here.
2021-06-16 17:03:17 +02:00
Kubernetes Prow Robot 6e276be8f1
Merge pull request #4145 from timoreimann/digitalocean/remove-tag-references-from-readme
digitalocean: remove tag references from README
2021-06-16 06:33:59 -07:00
Timo Reimann 0de2f81f73 digitalocean: remove tag references from README
An initial version of the DigitalOcean cloud provider implementation
relied on tags to define the behavior but has since been transitioned to
using the public DOKS API. Update the README accordingly.
2021-06-15 23:36:58 +02:00
Timo Reimann 7faca8b10b digitalocean: do not Refresh() on startup
If the API is temporarily unavailable, cluster-autoscaler will be
crash-looping on startup during the initial call to Refresh(). This
makes for a bad user/operator experience since it aggravates
differentiating between API and cluster/workload problems.

Let autoscaler start up and retry fetching node pool information from
the API as part of the pre-existing, periodic sync. This should be no
different to experiencing transient API problems during runtime.
2021-06-15 23:30:46 +02:00
Maciek Pytel 08d18a7bd0 Define interfaces for per NodeGroup config.
This is the first step of implementing
https://github.com/kubernetes/autoscaler/issues/3583#issuecomment-743215343.
New method was added to cloudprovider interface. All existing providers
were updated with a no-op stub implementation that will result in no
behavior change.
The config values specified per NodeGroup are not yet applied.
2021-01-25 11:00:16 +01:00
Bartłomiej Wróblewski 0fb897b839 Update imports after scheduler scheduler/framework/v1alpha1 removal 2020-11-30 10:48:52 +00:00
Jeremy L. Morris b83461d091 Add MorrisLaw to list of approvers for DigitalOcean 2020-07-08 17:55:01 -04:00
Kubernetes Prow Robot a63c7abbe4
Merge pull request #3201 from MaciekPytel/gomod
Update dependencies
2020-06-08 03:21:47 -07:00
Maciek Pytel 655b4081f4 Migrate to klog v2 2020-06-05 17:22:26 +02:00
Timo Reimann 88da455c04 DigitalOcean: do not use provider ID for node ID
The DO API requires the proper node ID and otherwise returns an error.
Thus, we can localize the error.
2020-06-05 12:04:23 +02:00
Jakub Tużnik 73a5cdf928 Address recent breaking changes in scheduler
The following things changed in scheduler and needed to be fixed:
* NodeInfo was moved to schedulerframework
* Some fields on NodeInfo are now exposed directly instead of via getters
* NodeInfo.Pods is now a list of *schedulerframework.PodInfo, not *apiv1.Pod
* SharedLister and NodeInfoLister were moved to schedulerframework
* PodLister was removed
2020-04-24 17:54:47 +02:00
Wayne Warren 6834064a33 fix digitalocean min size bug 2020-04-20 21:18:17 +00:00
MorrisLaw def91a018b Add MorrisLaw to the list of reviewers for DigitalOcean 2020-03-26 17:21:38 +00:00
Jay Pipes 260950871f Remove hard-copied github.com/digitalocean/godo
Adds the github.com/digitalocean/godo dependency as a go mod instead of
copied into the cluster-autoscaler/cloudprovider/digitalocean/godo
directory.
2019-12-02 15:10:30 -05:00
feifei.zhang@huawei.com dcd7a2b73c fix golint failures 2019-10-23 09:53:46 +08:00
Steven Normore 7e69503a7a doks: use providerID for node.ID 2019-10-21 12:48:08 -04:00
Steven Normore 1d39163eff Upgrade vendored digitalocean/godo version to v1.22.0 2019-10-21 12:48:08 -04:00
Kubernetes Prow Robot 6da7fdfd62
Merge pull request #2426 from digitalocean/doks-fix-max-size-check
doks: fix max size check, support increase to max
2019-10-21 09:25:38 -07:00
Hector Fernandez 24401b373f
cluster-autoscaler: fix some typos in the code 2019-10-13 12:52:53 +02:00
Steven Normore 7bf947e23a doks: fix max size check, support increase to max 2019-10-05 15:09:25 -04:00
Kubernetes Prow Robot 1db0b4a458
Merge pull request #2318 from digitalocean/doks-autoscale-api
Use DO node pool autoscale API integration
2019-09-09 12:18:55 -07:00
Steven Normore 01d274c731 Add test coverage for AutoScale=false 2019-09-09 14:31:36 -04:00
Steven Normore 5fec56bd63 DOKS node pool autoscale API integration 2019-09-09 11:13:30 -04:00
Steven Normore 08915661b1 DO provider use vendored godo v1.20.0 2019-09-07 15:03:09 -04:00
Łukasz Osipiuk a96bd9adc3 Remove cloudprovider/digitalocean/godo/go.mod 2019-09-05 14:38:24 +02:00
Fatih Arslan 5bacdf2f9f cloudprovider/digitalocean: fix unit tests
The `godo/util` package is not used and wasn't changed during vendoring
of the godo package. Seems like Travis didn't picked up this in the
initial PR. Let's remove the `util/` folder as it's not needed and also
add a documentation to list the changes we need to make in the `godo`
package.
2019-08-13 11:26:38 +03:00
Fatih Arslan c2e07c0fff cloudprovider: add DigitalOcean cloud provider 2019-08-09 16:11:18 +03:00
Fatih Arslan 2395c16745 cloudprovider: add godo, DigitalOcean API package 2019-08-09 16:10:22 +03:00