Skip to content

Conversation

@tayzlor
Copy link
Contributor

@tayzlor tayzlor commented Jan 20, 2016

PR for this enclosed.
No golang expert - I wasn't able to test this properly since I had some issues with my local env and following the instructions to run the test harness.

@tayzlor tayzlor force-pushed the fix-170-marathon-getbackend branch from 43ea035 to e921ceb Compare January 20, 2016 19:00
Copy link
Contributor Author

Choose a reason for hiding this comment

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

breaks because this is inside the range .Tasks so its passing a task instead of an application struct. so we need to pass back through the application here, but i'm not sure on how to do that

@tayzlor tayzlor force-pushed the fix-170-marathon-getbackend branch from e921ceb to 0e796f1 Compare January 20, 2016 19:52
@emilevauge
Copy link
Member

Hi @tayzlor, thank you for your contribution. What kind of issue do you have with your environment?
Tests are failing and therefore I cannot merge this PR :)

@tayzlor tayzlor force-pushed the fix-170-marathon-getbackend branch from 0e796f1 to 82ffd0e Compare January 21, 2016 09:40
@tayzlor
Copy link
Contributor Author

tayzlor commented Jan 21, 2016

Was my bad - spent a bit of time sorting out my Go setup and got the tests working. Latest push should fix the failing tests

@emilevauge
Copy link
Member

LGTM 🎉
But needs a rebase ;)
cc @vdemeester

@tayzlor tayzlor force-pushed the fix-170-marathon-getbackend branch from 632b153 to 82ffd0e Compare February 5, 2016 18:00
…y traefik.backend via labels on the container
@tayzlor tayzlor force-pushed the fix-170-marathon-getbackend branch from 82ffd0e to 2d79c50 Compare February 5, 2016 18:02
@tayzlor
Copy link
Contributor Author

tayzlor commented Feb 5, 2016

rebased ⚡

@vdemeester
Copy link
Contributor

LGTM 🐮

vdemeester added a commit that referenced this pull request Feb 6, 2016
@vdemeester vdemeester merged commit 901c9b2 into traefik:master Feb 6, 2016
@tayzlor tayzlor deleted the fix-170-marathon-getbackend branch February 11, 2016 11:47
{{$apps := .Applications}}
[backends]{{range .Tasks}}
[backends.backend{{.AppID | replace "/" "-"}}.servers.server-{{.ID | replace "." "-"}}]
[backends.backend{{with index $apps 0 }}{{getBackend .}}{{end}}.servers.server-{{.ID | replace "." "-"}}]
Copy link
Member

Choose a reason for hiding this comment

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

I think there is an issue here with index $apps 0 :'(
You should have sent all apps, like in getProtocol and compare the ID in the fonction I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants