Replace Delay by RefreshSecond in Eureka

This commit is contained in:
Ludovic Fernandez 2018-03-07 10:46:04 +01:00 committed by Traefiker Bot
parent c4529820f2
commit 3a2b421566
5 changed files with 36 additions and 25 deletions

View file

@ -201,6 +201,13 @@ func (gc *GlobalConfiguration) SetEffectiveConfiguration(configFile string) {
gc.LifeCycle.GraceTimeOut = gc.GraceTimeOut
}
if gc.Eureka != nil {
if gc.Eureka.Delay != 0 {
log.Warn("Delay has been deprecated -- please use RefreshSeconds")
gc.Eureka.RefreshSeconds = gc.Eureka.Delay
}
}
if gc.Rancher != nil {
// Ensure backwards compatibility for now
if len(gc.Rancher.AccessKey) > 0 ||