Disable resync period

This commit is contained in:
Manuel de Brito Fontes 2018-06-13 08:47:09 -04:00 committed by Manuel Alejandro de Brito Fontes
parent 64936fa471
commit 80f77b7a22
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
2 changed files with 2 additions and 8 deletions

View file

@ -21,7 +21,6 @@ import (
"fmt"
"os"
"runtime"
"time"
"github.com/golang/glog"
"github.com/spf13/pflag"
@ -79,8 +78,8 @@ The key in the map indicates the external port to be used. The value is a
reference to a Service in the form "namespace/name:port", where "port" can
either be a port name or number.`)
resyncPeriod = flags.Duration("sync-period", 600*time.Second,
`Period at which the controller forces the repopulation of its local object stores.`)
resyncPeriod = flags.Duration("sync-period", 0,
`Period at which the controller forces the repopulation of its local object stores. Disabled by default.`)
watchNamespace = flags.String("watch-namespace", apiv1.NamespaceAll,
`Namespace the controller watches for updates to Kubernetes objects.

View file

@ -104,11 +104,6 @@ func main() {
}
}
minResyncPeriod := 10 * time.Second
if conf.ResyncPeriod < minResyncPeriod {
glog.Fatalf("Resync period should be at least %v (current: %v)", minResyncPeriod, conf.ResyncPeriod)
}
// create the default SSL certificate (dummy)
defCert, defKey := ssl.GetFakeSSLCert()
c, err := ssl.AddOrUpdateCertAndKey(fakeCertificate, defCert, defKey, []byte{}, fs)