mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #48055 from yiqinguo/yiqinguo_remove_err_ignored
Automatic merge from submit-queue Add err judgment I do not think that the error can be ignored here. **Release note**: ```release-note NONE ```
This commit is contained in:
commit
d026286d39
@ -180,7 +180,10 @@ func (c *realRecyclerClient) Event(eventtype, message string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *realRecyclerClient) WatchPod(name, namespace string, stopChannel chan struct{}) (<-chan watch.Event, error) {
|
func (c *realRecyclerClient) WatchPod(name, namespace string, stopChannel chan struct{}) (<-chan watch.Event, error) {
|
||||||
podSelector, _ := fields.ParseSelector("metadata.name=" + name)
|
podSelector, err := fields.ParseSelector("metadata.name=" + name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
options := metav1.ListOptions{
|
options := metav1.ListOptions{
|
||||||
FieldSelector: podSelector.String(),
|
FieldSelector: podSelector.String(),
|
||||||
Watch: true,
|
Watch: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user