From de60f3ccb591ce29b61f0f7fd3f428573a49e558 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 Kubernetes-commit: faf891ad2d6dd1706932c8cf8774b2c7fb2b4bb1 --- rest/request.go | 2 +- rest/url_utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rest/request.go b/rest/request.go index 775f3c1a..d30c3898 100644 --- a/rest/request.go +++ b/rest/request.go @@ -124,7 +124,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/rest/url_utils.go b/rest/url_utils.go index c4ce6e3b..0a0ab791 100644 --- a/rest/url_utils.go +++ b/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)