Skip to content

Commit

Permalink
Do not discover unstable collectors (#14758)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlucas authored Dec 15, 2022
1 parent 907877f commit 5cf8318
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ func (p *APIServerDiscoveryProvider) walkAPIResources(inventory *inventory.Colle
continue
}

// Ignore unstable collectors.
if !collector.Metadata().IsStable {
continue
}

// Enable the cluster collector when the node resource is discovered.
if collector.Metadata().NodeType == orchestrator.K8sNode {
clusterCollector, _ := inventory.CollectorForDefaultVersion("clusters")
Expand Down

0 comments on commit 5cf8318

Please sign in to comment.