mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Update references from Path() to the appropriate segment use
This commit is contained in:
@@ -183,8 +183,7 @@ func (c *clientSwaggerSchema) ValidateBytes(data []byte) error {
|
||||
return err
|
||||
}
|
||||
schemaData, err := c.c.RESTClient.Get().
|
||||
AbsPath("/swaggerapi/api").
|
||||
Path(version).
|
||||
AbsPath("/swaggerapi/api", version).
|
||||
Do().
|
||||
Raw()
|
||||
if err != nil {
|
||||
|
@@ -70,12 +70,10 @@ Examples:
|
||||
}
|
||||
|
||||
readCloser, err := client.RESTClient.Get().
|
||||
Path("proxy/minions").
|
||||
Path(pod.Status.Host).
|
||||
Path("containerLogs").
|
||||
Path(namespace).
|
||||
Path(podID).
|
||||
Path(container).
|
||||
Prefix("proxy").
|
||||
Resource("minions").
|
||||
Name(pod.Status.Host).
|
||||
Suffix("containerLogs", namespace, podID, container).
|
||||
Param("follow", strconv.FormatBool(follow)).
|
||||
Stream()
|
||||
checkErr(err)
|
||||
|
Reference in New Issue
Block a user