From 3e075fcab56ff98247e1ea19f54a8d27f613dcb9 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Thu, 17 May 2018 19:32:48 -0400 Subject: [PATCH] Add a FIXME and don't log about insecure ports Thanks to @craigtracey for spotting this. --- pkg/model/components/apiserver.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkg/model/components/apiserver.go b/pkg/model/components/apiserver.go index 5d5abac632..f259899b99 100644 --- a/pkg/model/components/apiserver.go +++ b/pkg/model/components/apiserver.go @@ -26,7 +26,6 @@ import ( "k8s.io/kops/upup/pkg/fi/loader" "github.com/blang/semver" - "github.com/golang/glog" ) // KubeAPIServerOptionsBuilder adds options for the apiserver to the model @@ -210,14 +209,8 @@ func (b *KubeAPIServerOptionsBuilder) BuildOptions(o interface{}) error { c.AnonymousAuth = fi.Bool(false) } - // We disable the insecure port from 1.6 onwards - if b.IsKubernetesGTE("1.6") { - c.InsecurePort = 0 - glog.V(4).Infof("Enabling apiserver insecure port, for healthchecks (issue #43784)") - c.InsecurePort = 8080 - } else { - c.InsecurePort = 8080 - } + // FIXME : Disable the insecure port when kubernetes issue #43784 is fixed + c.InsecurePort = 8080 return nil }