-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
traefik.toml constraints error: Expected map but found 'string'.
#451
Comments
Hi @calvinmorrow
should work. |
Well, I trying to achieve this with docker, but didn't work. Using global constraint works, but the configuration had to be slightly different:
If I put just Putting as I suggest above will fix it, turning the Constraints correctly into Also, I'm confused with the correct syntax. In #481 it suggests the following syntax, which doesn't work:
Is the syntax for this configuration already defined as a consensus? |
Hi @tiagostutz, there is also an issue on toml parsing with constraints. Constraints will fully supported in 1.1. |
Using the
containous/traefik:v1.0.0-rc2
docker image against a consulCatalog backend:traefik.toml snippet:
Errors with:
2016/06/10 15:20:16 Error reading TOML config file /etc/traefik/traefik.toml : Type mismatch for 'main.TraefikConfiguration.ConsulCatalog': Type mismatch for 'provider.ConsulCatalog.Constraints': Type mismatch for types.Constraint. Expected map but found 'string'.
Using the following command line option works:
--consulCatalog.constraints=tag==foo
The text was updated successfully, but these errors were encountered: