fix(kubectl): kubectl events doesn't filter events by GroupVersion for resource with full name
Kubernetes-commit: 28621f1eb3f3a9ba212c844db4696f7f17450942
This commit is contained in:
parent
3b64cc566e
commit
296dae746e
|
|
@ -229,6 +229,7 @@ func (o *EventsOptions) Run() error {
|
|||
if o.forName != "" {
|
||||
listOptions.FieldSelector = fields.AndSelectors(
|
||||
fields.OneTermEqualSelector("involvedObject.kind", o.forGVK.Kind),
|
||||
fields.OneTermEqualSelector("involvedObject.apiVersion", o.forGVK.GroupVersion().String()),
|
||||
fields.OneTermEqualSelector("involvedObject.name", o.forName)).String()
|
||||
}
|
||||
if o.Watch {
|
||||
|
|
|
|||
Loading…
Reference in New Issue