From 58b922150a5d284aba19b5b526f591da6c39a1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Wanzenb=C3=B6ck?= Date: Wed, 10 Sep 2025 08:44:50 +0200 Subject: [PATCH] Add PodMonitor to supported resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PodMonitor is a useful resource when monitoring a set of Pods that do not have a dedicated Service resource associated. This is helpful if the only reason to add them to a Service would be to configure monitoring. Fixes #1688 Signed-off-by: Moritz Wanzenböck --- pkg/lib/bundle/supported_resources.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/lib/bundle/supported_resources.go b/pkg/lib/bundle/supported_resources.go index 3569367ef..ee2afeb41 100644 --- a/pkg/lib/bundle/supported_resources.go +++ b/pkg/lib/bundle/supported_resources.go @@ -22,6 +22,7 @@ const ( ConsoleLinkKind = "ConsoleLink" ConsolePlugin = "ConsolePlugin" NetworkPolicyKind = "NetworkPolicy" + PodMonitorKind = "PodMonitor" ) // Namespaced indicates whether the resource is namespace scoped (true) or cluster-scoped (false). @@ -51,6 +52,7 @@ var supportedResources = map[string]Namespaced{ ConsoleLinkKind: false, ConsolePlugin: false, NetworkPolicyKind: true, + PodMonitorKind: true, } // IsSupported checks if the object kind is OLM-supported and if it is namespaced