Skip to content

Conversation

@dontrebootme
Copy link

We already decided to convert all slashes to dashes for marathon deployments, now I'm updating the frontend rule value to also match that.

Currently docker and marathon providers use getEscapedName.

Similar effort to #137

Before:

time="2016-02-03T01:01:06Z" level=info msg="Creating frontend frontend-prod-foosvc"
time="2016-02-03T01:01:06Z" level=info msg="Creating route route-host-prod-foosvc Host:prodfoosvc.docker.local"

After

time="2016-02-03T20:18:55Z" level=info msg="Creating frontend frontend-prod-foosvc"
time="2016-02-03T20:18:55Z" level=info msg="Creating route route-host-prod-foosvc Host:prod-foosvc.docker.local"

Remove only the first slash, convert the rest to dash
@emilevauge
Copy link
Member

Thanks @dontrebootme !
LGTM 🎉 cc @vdemeester

@vdemeester
Copy link
Contributor

LGTM 🐵

vdemeester added a commit that referenced this pull request Feb 3, 2016
Updated getEscapedName with slash to dash instead of space
@vdemeester vdemeester merged commit d359802 into traefik:master Feb 3, 2016
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