@@ -12,7 +12,6 @@ import (
1212
1313 "github.com/gorilla/handlers"
1414 "github.com/gorilla/mux"
15- "github.com/openshift/monitoring-plugin/pkg/proxy"
1615 "github.com/sirupsen/logrus"
1716 "gopkg.in/yaml.v2"
1817 v1 "k8s.io/api/core/v1"
@@ -21,6 +20,8 @@ import (
2120 "k8s.io/client-go/kubernetes/scheme"
2221 "k8s.io/client-go/rest"
2322 "k8s.io/client-go/tools/record"
23+
24+ "github.com/openshift/monitoring-plugin/pkg/proxy"
2425)
2526
2627var log = logrus .WithField ("module" , "server" )
@@ -88,11 +89,11 @@ func CreateServer(ctx context.Context, cfg *Config) (*PluginServer, error) {
8889
8990func (s * PluginServer ) StartHTTPServer () error {
9091 if s .Config .IsTLSEnabled () {
91- log .Infof ("listening for https on %s" , s .Server . Addr )
92- return s .Server . ListenAndServeTLS (s .Config .CertFile , s .Config .PrivateKeyFile )
92+ log .Infof ("listening for https on %s" , s .Addr )
93+ return s .ListenAndServeTLS (s .Config .CertFile , s .Config .PrivateKeyFile )
9394 }
94- log .Infof ("listening for http on %s" , s .Server . Addr )
95- return s .Server . ListenAndServe ()
95+ log .Infof ("listening for http on %s" , s .Addr )
96+ return s .ListenAndServe ()
9697}
9798
9899func (s * PluginServer ) Shutdown (ctx context.Context ) error {
0 commit comments