Skip to content
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

Merged
merged 5 commits into from
Feb 6, 2017

Conversation

SantoDE
Copy link
Collaborator

@SantoDE SantoDE commented Feb 5, 2017

New Provider - Rancher. I still need to do some stuff, but it's a base for discussions :)

TODO:

  • write tests
  • update docs
  • make sure provider.Watch is implemented correctly
  • set defaults

@emilevauge emilevauge added this to the 1.3 milestone Feb 6, 2017
@SantoDE SantoDE force-pushed the feature-rancher-integration branch 2 times, most recently from c2e26d7 to 660416b Compare February 6, 2017 15:35
Manuel Laufenberg added 5 commits February 6, 2017 17:02
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
@SantoDE SantoDE force-pushed the feature-rancher-integration branch from 3757639 to 3a875e2 Compare February 6, 2017 16:04
@vdemeester vdemeester modified the milestones: 1.3, 1.2 Feb 6, 2017
@SantoDE SantoDE changed the title WIP - Feature rancher integration Feature rancher integration Feb 6, 2017
Copy link
Contributor

@vdemeester vdemeester left a 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 (
Copy link
Contributor

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 {
Copy link
Contributor

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.

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SantoDE 😍
LGTM

@emilevauge
Copy link
Member

@SantoDE I will merge this one as is: could you open an issue to update doc & imports?

@emilevauge emilevauge merged commit bff654b into traefik:master Feb 6, 2017
@SantoDE SantoDE deleted the feature-rancher-integration branch February 6, 2017 18:14
@SantoDE SantoDE mentioned this pull request Feb 6, 2017
3 tasks
@SantoDE
Copy link
Collaborator Author

SantoDE commented Feb 6, 2017

Done @emilevauge

@ashmckenzie
Copy link

Really keen to try this out, any chance of an example config?

@SantoDE
Copy link
Collaborator Author

SantoDE commented Feb 8, 2017

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

@kelchm
Copy link
Contributor

kelchm commented Feb 27, 2017

For anyone who is looking for it, here is a link to the rancher backend provider docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants