Add healthz tests

This commit is contained in:
Manuel de Brito Fontes 2017-11-06 19:34:30 -03:00
parent 826e466f59
commit 3fd7a14774
6 changed files with 222 additions and 75 deletions

View file

@ -40,6 +40,7 @@ import (
v1core "k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/tools/record"
"k8s.io/client-go/util/flowcontrol"
"k8s.io/kubernetes/pkg/util/filesystem"
"k8s.io/ingress-nginx/pkg/ingress"
"k8s.io/ingress-nginx/pkg/ingress/annotations/class"
@ -110,6 +111,8 @@ func NewNGINXController(config *Configuration) *NGINXController {
stopCh: make(chan struct{}),
stopLock: &sync.Mutex{},
fileSystem: filesystem.DefaultFs{},
}
n.stats = newStatsCollector(config.Namespace, config.IngressClass, n.binary, n.cfg.ListenPorts.Status)
@ -223,6 +226,8 @@ type NGINXController struct {
Proxy *TCPProxy
backendDefaults defaults.Backend
fileSystem filesystem.Filesystem
}
// Start start a new NGINX master process running in foreground.