mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #1387 from lavalamp/fix4
Don't pass empty labels (looks weird to POST with a label set)
This commit is contained in:
commit
b9028753b0
@ -304,9 +304,10 @@ func executeAPIRequest(method string, c *client.Client) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
r := c.Verb(verb).
|
||||
Path(path).
|
||||
ParseSelectorParam("labels", *selector)
|
||||
r := c.Verb(verb).Path(path)
|
||||
if len(*selector) > 0 {
|
||||
r.ParseSelectorParam("labels", *selector)
|
||||
}
|
||||
if setBody {
|
||||
if version != 0 {
|
||||
data := readConfig(storage, c.RESTClient.Codec)
|
||||
|
Loading…
Reference in New Issue
Block a user