Skip to content

Commit 017ab53

Browse files
authored
Add PodMonitor to supported resources (#1795)
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 <[email protected]>
1 parent 4cceb63 commit 017ab53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/lib/bundle/supported_resources.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const (
2222
ConsoleLinkKind = "ConsoleLink"
2323
ConsolePlugin = "ConsolePlugin"
2424
NetworkPolicyKind = "NetworkPolicy"
25+
PodMonitorKind = "PodMonitor"
2526
)
2627

2728
// Namespaced indicates whether the resource is namespace scoped (true) or cluster-scoped (false).
@@ -51,6 +52,7 @@ var supportedResources = map[string]Namespaced{
5152
ConsoleLinkKind: false,
5253
ConsolePlugin: false,
5354
NetworkPolicyKind: true,
55+
PodMonitorKind: true,
5456
}
5557

5658
// IsSupported checks if the object kind is OLM-supported and if it is namespaced

0 commit comments

Comments
 (0)