From a1ad308995f2c155f9d8b7a78b5a1f8e61751cad Mon Sep 17 00:00:00 2001 From: trevormcguire Date: Fri, 7 Jun 2024 14:57:00 -0400 Subject: [PATCH] include group in apiVersion in plugin_collector Signed-off-by: Trevor McGuire --- .../pkg/controller/nodes/task/k8s/plugin_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flytepropeller/pkg/controller/nodes/task/k8s/plugin_collector.go b/flytepropeller/pkg/controller/nodes/task/k8s/plugin_collector.go index caf7c81721..f0681a6bca 100644 --- a/flytepropeller/pkg/controller/nodes/task/k8s/plugin_collector.go +++ b/flytepropeller/pkg/controller/nodes/task/k8s/plugin_collector.go @@ -52,7 +52,7 @@ func (r *ResourceLevelMonitor) collect(ctx context.Context) { list := metav1.PartialObjectMetadataList{ TypeMeta: metav1.TypeMeta{ Kind: r.gvk.Kind, - APIVersion: r.gvk.Version, + APIVersion: r.gvk.GroupVersion().String(), }, } if err := r.cache.List(ctx, &list); err != nil {