mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
fix for listPods with nil parameters
This commit is contained in:
parent
d9d12fd3f7
commit
6ea63e69ce
@ -359,6 +359,9 @@ func (r *Request) FieldsSelectorParam(s fields.Selector) *Request {
|
|||||||
if r.err != nil {
|
if r.err != nil {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
if s == nil {
|
||||||
|
return r
|
||||||
|
}
|
||||||
if s.Empty() {
|
if s.Empty() {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
@ -377,6 +380,9 @@ func (r *Request) LabelsSelectorParam(s labels.Selector) *Request {
|
|||||||
if r.err != nil {
|
if r.err != nil {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
if s == nil {
|
||||||
|
return r
|
||||||
|
}
|
||||||
if s.Empty() {
|
if s.Empty() {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user