Comments (5)
Did this fix the issue mentioned in #24 (comment) ?
The code still seems to contain the "broken" logic?
from digitalocean-cloud-controller-manager.
@klausenbusk this should have been fixed. What code are you referring to? GetZone()
?
from digitalocean-cloud-controller-manager.
@klausenbusk this should have been fixed. What code are you referring to? GetZone()?
This code:
digitalocean-cloud-controller-manager/do/metadata.go
Lines 28 to 30 in 9fbae98
digitalocean-cloud-controller-manager/do/cloud.go
Lines 75 to 77 in f029698
Maybe I just don't understand the code :)
from digitalocean-cloud-controller-manager.
The confusion there is how the Zones interface was designed. The GetZone method was originally for kubelets to get their own zones, usually using a meta data service. External cloud controllers have to adopt the same interfaces for compatibility. We technically don't even need to implement that method since it would never be called in our context, but it was used since GetZone was the only method at the time.
In v1.8, GetZoneByProviderID and GetZoneByName were added which is what's really called by cloud controllers upstream. Before v1.8, this was considered a bug as per kubernetes/kubernetes#49308
from digitalocean-cloud-controller-manager.
Our implementation for GetZoneByProviderID and GetZoneByName https://github.com/digitalocean/digitalocean-cloud-controller-manager/blob/master/do/zones.go#L43-L70
And the only piece of code using the region
field is GetZone https://github.com/digitalocean/digitalocean-cloud-controller-manager/blob/master/do/zones.go#L40 which as I mentioned previously is not really used in our context, might be worthwhile to remove the implementation there altogether to avoid future confusion :)
from digitalocean-cloud-controller-manager.
Related Issues (20)
- do-loadbalancer-protocol: 'http2' results in 'http2' --> 'http' HOT 4
- Extending Loadbalancer timeout duration HOT 1
- Misconfigured cloud-controller-manager.yml (HA deployment that uses daemonset) HOT 1
- Change release pipeline to promote dev manifests
- Protect load balancer from being deleted HOT 8
- udp loadbalancer failing to create HOT 8
- Controller manual mode HOT 17
- Allow the region to be explicitly specified instead of using the Region metadata API HOT 5
- K8 annotations for load balancer name / id do not work as expected HOT 4
- Typos in README.md
- IPv6 address missing in nodes status HOT 9
- Prevent duplicate do-loadbalancer-name annotation from changing LB ownership
- do-loadbalancer should accept a certificate name as an alternative to the certificate ID HOT 1
- Wrong validation regex for service.beta.kubernetes.io/do-loadbalancer-allow-rules HOT 2
- Feature Request: Create a Helm chart for DO CCM HOT 1
- Cloud Controller Manager doesn't add droplets to Load Balancer HOT 9
- `k8s.gcr.io` is no longer used HOT 2
- CI: Bypass branch protection on release workflow execution
- do-loadbalancer-allow-rules doesn't work (firewall is not configured) HOT 1
- Confusion with do-loadbalancer-hostname HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digitalocean-cloud-controller-manager.