Deprecate defaultRuleSyntax and ruleSyntax options
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
50b0d772e5
commit
bb7ef7b48a
48 changed files with 333 additions and 194 deletions
|
@ -53,6 +53,15 @@ func mergeConfiguration(configurations dynamic.Configurations, defaultEntryPoint
|
|||
router.EntryPoints = defaultEntryPoints
|
||||
}
|
||||
|
||||
// The `ruleSyntax` option is deprecated.
|
||||
// We exclude the "default" value to avoid logging it,
|
||||
// as it is the value used for internal models and computed rules.
|
||||
if router.RuleSyntax != "" && router.RuleSyntax != "default" {
|
||||
log.Warn().
|
||||
Str(logs.RouterName, routerName).
|
||||
Msg("Router's `ruleSyntax` option is deprecated, please remove any usage of this option.")
|
||||
}
|
||||
|
||||
conf.HTTP.Routers[provider.MakeQualifiedName(pvd, routerName)] = router
|
||||
}
|
||||
for middlewareName, middleware := range configuration.HTTP.Middlewares {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue