From faf891ad2d6dd1706932c8cf8774b2c7fb2b4bb1 Mon Sep 17 00:00:00 2001 From: ComingCL <1328004790@qq.com> Date: Sat, 15 Jun 2024 00:28:03 +0800 Subject: [PATCH] fix typo errors in client-go rest package --- staging/src/k8s.io/client-go/rest/request.go | 2 +- staging/src/k8s.io/client-go/rest/url_utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/client-go/rest/request.go b/staging/src/k8s.io/client-go/rest/request.go index f5a9f68ca43..07df923842a 100644 --- a/staging/src/k8s.io/client-go/rest/request.go +++ b/staging/src/k8s.io/client-go/rest/request.go @@ -123,7 +123,7 @@ type Request struct { // output err error - // only one of body / bodyBytes may be set. requests using body are not retriable. + // only one of body / bodyBytes may be set. requests using body are not retryable. body io.Reader bodyBytes []byte diff --git a/staging/src/k8s.io/client-go/rest/url_utils.go b/staging/src/k8s.io/client-go/rest/url_utils.go index c4ce6e3b8fc..0a0ab791739 100644 --- a/staging/src/k8s.io/client-go/rest/url_utils.go +++ b/staging/src/k8s.io/client-go/rest/url_utils.go @@ -61,7 +61,7 @@ func DefaultServerURL(host, apiPath string, groupVersion schema.GroupVersion, de return hostURL, versionedAPIPath, nil } -// DefaultVersionedAPIPathFor constructs the default path for the given group version, assuming the given +// DefaultVersionedAPIPath constructs the default path for the given group version, assuming the given // API path, following the standard conventions of the Kubernetes API. func DefaultVersionedAPIPath(apiPath string, groupVersion schema.GroupVersion) string { versionedAPIPath := path.Join("/", apiPath)