Commit 151b8118 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #50069 from fisherxu/master

Automatic merge from submit-queue (batch tested with PRs 48237, 50084, 50019, 50069, 50090) Fix comment of isHTTPSURL **What this PR does / why we need it**: fix comment of isHTTPSURL
parents 65e6bf8d 8ea31945
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment