mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Don't pass empty labels (looks weird to POST with a label set)
This commit is contained in:
parent
e25171969b
commit
4aecdce258
@ -291,9 +291,10 @@ func executeAPIRequest(method string, c *client.Client) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
r := c.Verb(verb).
|
r := c.Verb(verb).Path(path)
|
||||||
Path(path).
|
if len(*selector) > 0 {
|
||||||
ParseSelectorParam("labels", *selector)
|
r.ParseSelectorParam("labels", *selector)
|
||||||
|
}
|
||||||
if setBody {
|
if setBody {
|
||||||
if version != 0 {
|
if version != 0 {
|
||||||
data := readConfig(storage)
|
data := readConfig(storage)
|
||||||
|
Loading…
Reference in New Issue
Block a user