mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 12:11:43 +00:00
Finalize fields.Selector
This commit is contained in:
@@ -26,6 +26,7 @@ import (
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
|
||||
"github.com/golang/glog"
|
||||
)
|
||||
@@ -205,7 +206,7 @@ func (d *PodDescriber) Describe(namespace, name string) (string, error) {
|
||||
if err != nil {
|
||||
events, err2 := d.Events(namespace).List(
|
||||
labels.Everything(),
|
||||
labels.Set{
|
||||
fields.Set{
|
||||
"involvedObject.name": name,
|
||||
"involvedObject.namespace": namespace,
|
||||
}.AsSelector(),
|
||||
|
Reference in New Issue
Block a user