commit
cf1f015576
3 changed files with 8 additions and 12 deletions
10
.travis.yml
10
.travis.yml
|
@ -40,10 +40,12 @@ jobs:
|
||||||
script:
|
script:
|
||||||
- sudo luarocks install luacheck
|
- sudo luarocks install luacheck
|
||||||
- make luacheck
|
- make luacheck
|
||||||
- mkdir --parents $GOPATH/src/golang.org/x
|
- |
|
||||||
&& git clone --depth=1 https://go.googlesource.com/lint $GOPATH/src/golang.org/x/lint
|
go get -d golang.org/x/lint/golint
|
||||||
&& go get golang.org/x/lint/golint
|
cd $GOPATH/src/golang.org/x/tools
|
||||||
- go get github.com/vbatts/git-validation
|
git checkout release-branch.go1.10
|
||||||
|
go install golang.org/x/lint/golint
|
||||||
|
cd -
|
||||||
- make verify-all
|
- make verify-all
|
||||||
- stage: Lua Unit Test
|
- stage: Lua Unit Test
|
||||||
before_script:
|
before_script:
|
||||||
|
|
|
@ -21,7 +21,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/spf13/pflag"
|
"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
|
reference to a Service in the form "namespace/name:port", where "port" can
|
||||||
either be a port name or number.`)
|
either be a port name or number.`)
|
||||||
|
|
||||||
resyncPeriod = flags.Duration("sync-period", 600*time.Second,
|
resyncPeriod = flags.Duration("sync-period", 0,
|
||||||
`Period at which the controller forces the repopulation of its local object stores.`)
|
`Period at which the controller forces the repopulation of its local object stores. Disabled by default.`)
|
||||||
|
|
||||||
watchNamespace = flags.String("watch-namespace", apiv1.NamespaceAll,
|
watchNamespace = flags.String("watch-namespace", apiv1.NamespaceAll,
|
||||||
`Namespace the controller watches for updates to Kubernetes objects.
|
`Namespace the controller watches for updates to Kubernetes objects.
|
||||||
|
|
|
@ -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)
|
// create the default SSL certificate (dummy)
|
||||||
defCert, defKey := ssl.GetFakeSSLCert()
|
defCert, defKey := ssl.GetFakeSSLCert()
|
||||||
c, err := ssl.AddOrUpdateCertAndKey(fakeCertificate, defCert, defKey, []byte{}, fs)
|
c, err := ssl.AddOrUpdateCertAndKey(fakeCertificate, defCert, defKey, []byte{}, fs)
|
||||||
|
|
Loading…
Reference in a new issue