mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #125516 from ComingCL/master
fix typo errors in client-go rest package
This commit is contained in:
commit
367e7e889b
@ -124,7 +124,7 @@ type Request struct {
|
|||||||
// output
|
// output
|
||||||
err error
|
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
|
body io.Reader
|
||||||
bodyBytes []byte
|
bodyBytes []byte
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ func DefaultServerURL(host, apiPath string, groupVersion schema.GroupVersion, de
|
|||||||
return hostURL, versionedAPIPath, nil
|
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.
|
// API path, following the standard conventions of the Kubernetes API.
|
||||||
func DefaultVersionedAPIPath(apiPath string, groupVersion schema.GroupVersion) string {
|
func DefaultVersionedAPIPath(apiPath string, groupVersion schema.GroupVersion) string {
|
||||||
versionedAPIPath := path.Join("/", apiPath)
|
versionedAPIPath := path.Join("/", apiPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user