From 16f249dbdd75cbe2d579883231c0cb002f4e8bbb Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Sat, 3 Sep 2022 14:52:53 -0400 Subject: [PATCH] fix(plugins/plugin-kubectl): Show Events may show events from prior versions of resource --- plugins/plugin-kubectl/src/lib/view/modes/Events.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin-kubectl/src/lib/view/modes/Events.tsx b/plugins/plugin-kubectl/src/lib/view/modes/Events.tsx index 12b43a3ad3a..1beec7a295e 100644 --- a/plugins/plugin-kubectl/src/lib/view/modes/Events.tsx +++ b/plugins/plugin-kubectl/src/lib/view/modes/Events.tsx @@ -41,7 +41,7 @@ function hasEvents(resource: KubeResource): boolean { */ function command(_, resource: KubeResource, args: { argvNoOptions: string[]; parsedOptions: ParsedOptions }) { // limit events to those intersecting with the giving resource - const filter = `involvedObject.apiVersion=${resource.apiVersion},involvedObject.kind=${resource.kind},involvedObject.name=${resource.metadata.name},involvedObject.namespace=${resource.metadata.namespace}` + const filter = `involvedObject.apiVersion=${resource.apiVersion},involvedObject.kind=${resource.kind},involvedObject.name=${resource.metadata.name},involvedObject.namespace=${resource.metadata.namespace},involvedObject.resourceVersion=${resource.metadata.resourceVersion}` // this is the command that will fetch the events table; we specify a watchable table const argv = [