mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 23:48:30 +00:00
Merge pull request #99193 from zhijianli88/subresource
request.go: correct subresource referencing Kubernetes-commit: e16c6cc3483989899961c623518a1150e9078495
This commit is contained in:
commit
12449b5492
@ -242,7 +242,7 @@ func (r *Request) SubResource(subresources ...string) *Request {
|
|||||||
}
|
}
|
||||||
subresource := path.Join(subresources...)
|
subresource := path.Join(subresources...)
|
||||||
if len(r.subresource) != 0 {
|
if len(r.subresource) != 0 {
|
||||||
r.err = fmt.Errorf("subresource already set to %q, cannot change to %q", r.resource, subresource)
|
r.err = fmt.Errorf("subresource already set to %q, cannot change to %q", r.subresource, subresource)
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
for _, s := range subresources {
|
for _, s := range subresources {
|
||||||
|
Loading…
Reference in New Issue
Block a user