-
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
Use KvStores as global config sources #481
Conversation
strings.Split(traefikConfiguration.Consul.Endpoint, ","), | ||
nil, | ||
strings.TrimPrefix(traefikConfiguration.Consul.Prefix, "/"), // TrimPrefix should be done in https://github.com/docker/libkv/blob/master/store/consul/consul.go#L113 : IDK why it doen't work | ||
) |
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.
Consul TLS should be added.
0d4bd55
to
6deab60
Compare
30536eb
to
0b6fda8
Compare
- arguments | ||
- configuration file | ||
- default | ||
|
||
It means that arguments overrides configuration file. | ||
It means that arguments overrides configuration file, and Key-value Store override arguments. |
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.
overrides
Really go job @cocap10 :) I made few comments. |
3ee7fb8
to
c51af7b
Compare
rebased :) |
Key string `description:"TLS key"` | ||
InsecureSkipVerify bool `description:"TLS insecure skip verify"` | ||
} | ||
|
||
func (provider *Docker) createClient() (client.APIClient, error) { | ||
var httpClient *http.Client | ||
httpHeaders := map[string]string{ | ||
// FIXME(vdemeester) use version here O:) |
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.
What about this @vdemeester ? 👼
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.
ah 😸.
Basic idea is to put the version of traefik
in the http header (user-agent) so that we can debug easier looking at docker logs 😝.
This should be done, but not really related to this PR 👼
c51af7b
to
7654d82
Compare
Træfɪk's configuration has two parts: | ||
|
||
- The [static Træfɪk configuration](/basics#static-trfk-configuration) which is loaded only at the begining. | ||
- The [dynamic Træfɪk configuration](/basics#dynamic-trfk-configuration) which can be hot-reloaded (no need to restart the process). |
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.
Maybe we should say the the dynamic configuration is where backend are defined (and potentially watched). wdyt ?
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.
Mmm, we setup the connection to configuration backends in the static configuration, right ?
The dynamic configuration is about route rules provided by configuration backends
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.
Mmm, that's true 😅
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 think that you are both right :D
Maybe we should say the the dynamic configuration is where backend are defined (and potentially watched). wdyt ?
He meant frontends, backends and servers
Mmm, we setup the connection to configuration backends in the static configuration, right ?
The dynamic configuration is about route rules provided by configuration backends
He meant configuration backends = providers ;)
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.
So, should I change anything ? ;)
Few nits, but overall LGTM 🐯 |
7654d82
to
fdb3133
Compare
e22227d
to
5107596
Compare
re-rebased ;) |
@cocap10 needs another rebase 😓 |
Signed-off-by: Martin <[email protected]>
5107596
to
b153e90
Compare
done ^^ |
yay it's green 💚 |
This PR :
StructTag
to squash embedded structuresTODO :
TLSClient