From 1fb5d94f787c52bbdefc3c2b981b92f27463f575 Mon Sep 17 00:00:00 2001 From: Rashmi Gottipati Date: Fri, 16 May 2025 22:23:51 -0400 Subject: [PATCH] Add NetworkPolicy as a supported kind Signed-off-by: Rashmi Gottipati --- 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 b9440018f..3569367ef 100644 --- a/pkg/lib/bundle/supported_resources.go +++ b/pkg/lib/bundle/supported_resources.go @@ -21,6 +21,7 @@ const ( ConsoleCLIDownloadKind = "ConsoleCLIDownload" ConsoleLinkKind = "ConsoleLink" ConsolePlugin = "ConsolePlugin" + NetworkPolicyKind = "NetworkPolicy" ) // Namespaced indicates whether the resource is namespace scoped (true) or cluster-scoped (false). @@ -49,6 +50,7 @@ var supportedResources = map[string]Namespaced{ ConsoleCLIDownloadKind: false, ConsoleLinkKind: false, ConsolePlugin: false, + NetworkPolicyKind: true, } // IsSupported checks if the object kind is OLM-supported and if it is namespaced