diff --git a/cmd/kubeadm/app/apis/kubeadm/validation/validation.go b/cmd/kubeadm/app/apis/kubeadm/validation/validation.go index dbef2b7a5f0..7925070b989 100644 --- a/cmd/kubeadm/app/apis/kubeadm/validation/validation.go +++ b/cmd/kubeadm/app/apis/kubeadm/validation/validation.go @@ -214,7 +214,7 @@ func ValidateDiscoveryFile(discoveryFile string, fldPath *field.Path) field.Erro } if u.Scheme != "https" { - allErrs = append(allErrs, field.Invalid(fldPath, discoveryFile, "if an URL is used, the scheme must be https")) + allErrs = append(allErrs, field.Invalid(fldPath, discoveryFile, "if a URL is used, the scheme must be https")) } return allErrs } diff --git a/cmd/kubeadm/app/discovery/discovery.go b/cmd/kubeadm/app/discovery/discovery.go index f6a54911a32..1f6fc74a19c 100644 --- a/cmd/kubeadm/app/discovery/discovery.go +++ b/cmd/kubeadm/app/discovery/discovery.go @@ -65,7 +65,7 @@ func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcm } } -// isHTTPSURL checks whether the string is parsable as an URL and whether the Scheme is https +// isHTTPSURL checks whether the string is parsable as a URL and whether the Scheme is https func isHTTPSURL(s string) bool { u, err := url.Parse(s) return err == nil && u.Scheme == "https" diff --git a/pkg/registry/core/node/strategy.go b/pkg/registry/core/node/strategy.go index 4653b3f445d..b5f432a4936 100644 --- a/pkg/registry/core/node/strategy.go +++ b/pkg/registry/core/node/strategy.go @@ -184,7 +184,7 @@ func NodeNameTriggerFunc(obj runtime.Object) []pkgstorage.MatchValue { return []pkgstorage.MatchValue{result} } -// ResourceLocation returns an URL and transport which one can use to send traffic for the specified node. +// ResourceLocation returns a URL and transport which one can use to send traffic for the specified node. func ResourceLocation(getter ResourceGetter, connection client.ConnectionInfoGetter, proxyTransport http.RoundTripper, ctx genericapirequest.Context, id string) (*url.URL, http.RoundTripper, error) { schemeReq, name, portReq, valid := utilnet.SplitSchemeNamePort(id) if !valid {