Exclude some resources from being collected by clusterResources collector

How do I create a support bundle but exclude some resources such as ConfigMaps being collected by the clusterResources collector. I would like to restrict the resources collected to very specific Kinds.

Hi @krispybytes,

As of current version v0.121.2, it is not possible to exclude some resources such as ConfigMap from clusterResources collector.

The clusterResources collector is designed to collect all known types that are deployed to the cluster but Secret.

Your options now are:

  • use .exclude to exclude the clusterResources
  • use .namespaces to list namespaces from which the resources and information will be collected
  • there is default Redact rule but you can also write custom redactors to filter unwanted data in the ConfigMap

I hope this helps.

Gerard

Hi @GerardNguyen ,

Thank you for your reply. The information provided does help.

I will explore the options you have listed above.