-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Feature rancher integration #1120
Feature rancher integration #1120
Conversation
c2e26d7
to
660416b
Compare
add tons of labels Provide - WIP add rancher data over rancher types first version of direct fetch - pagination still an issue
fmt & lint
lint files
3757639
to
3a875e2
Compare
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.
Except from the import order 😂 code LGTM 🐯
@@ -0,0 +1,458 @@ | |||
package provider | |||
|
|||
import ( |
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.
Import are not in the right order 😅
|
||
// Frontend Labels | ||
func (provider *Rancher) getPassHostHeader(service rancherData) string { | ||
if passHostHeader, err := getServiceLabel(service, "traefik.frontend.passHostHeader"); err == nil { |
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 really feel this kind of line are duplicated a lot, it's orthogonal to this PR (/me thinking outloud 🤔) but at some point I think we could refactor this to share some common code.
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.
Thanks @SantoDE 😍
LGTM
@SantoDE I will merge this one as is: could you open an issue to update doc & imports? |
Done @emilevauge |
Really keen to try this out, any chance of an example config? |
Hey @ashmckenzie, until PR #1127 is merged, the only way to test that feature is by providing the endpoint, access and secret key. You can find documentation in that PR here |
For anyone who is looking for it, here is a link to the rancher backend provider docs. |
New Provider - Rancher. I still need to do some stuff, but it's a base for discussions :)
TODO: