Remove disableTLSVerification flag
With that flag is no longer
needed.
package main
import (
- "crypto/tls"
"flag"
- "net/http"
"time"
"github.com/Azure/Kore/pkg/handler"
@@ -19,10 +17,6 @@ import (
_ "k8s.io/gengo/parser"
)
-var (
- disableTLSVerification = flag.Bool("disableTLSVerification", false, "Disable TLS certificate verification")
-)
-
func main() {
koreClient, kubeClient, err := kubernetes.GetClients()
if err != nil {
@@ -40,9 +34,4 @@ func main() {
func init() {
flag.Parse()
-
- if *disableTLSVerification {
- log.Infof("Setting TLSClientConfig InsecureSkipVerify to true because --disableTLSVerification was passed")
- http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
- }
}
