From cf4a9ed811508fb330da7de50d338ed55202ef9f Mon Sep 17 00:00:00 2001 From: Trevor McGuire <78115767+trevormcguire@users.noreply.github.com> Date: Mon, 17 Jun 2024 10:22:57 -0400 Subject: [PATCH] include group in apiVersion in plugin_collector (#5457) Signed-off-by: Trevor McGuire Signed-off-by: Vladyslav Libov --- .../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 {