From 8ea31945be0421160b65b3586baed648990188fc Mon Sep 17 00:00:00 2001 From: xufei Date: Thu, 3 Aug 2017 14:56:45 +0800 Subject: [PATCH] Fix comment of isHTTPSURL --- cmd/kubeadm/app/discovery/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/discovery/discovery.go b/cmd/kubeadm/app/discovery/discovery.go index 3e64b38de00..b452285fa41 100644 --- a/cmd/kubeadm/app/discovery/discovery.go +++ b/cmd/kubeadm/app/discovery/discovery.go @@ -64,7 +64,7 @@ func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcm } } -// isHTTPSURL checks whether the string is parsable as an URL +// isHTTPSURL checks whether the string is parsable as an URL and whether the Scheme is https func isHTTPSURL(s string) bool { u, err := url.Parse(s) return err == nil && u.Scheme == "https"