Description of problem: When must-gather is run, the imagestreams in the "openshift" namespace are extracted, but Templates in the same namespace are not extracted. The entire openshift namespace is listed as a "related object" by the openshift-samples ClusterOperator. Version-Release number of selected component (if applicable): 4.8.5 How reproducible: Always Steps to Reproduce: 1. Install OpenShift, ensuring that the Samples operator bootstraps itself as "Managed" 2. Run oc adm must-gather on the cluster 3. Inspect the contents of the openshift namespace Actual results: Imagestreams are extracted from the openshift namespace, but Templates are not. Expected results: Imagestreams and templates are extracted. Additional info:
This is coming from the fact that must-gather scrapes `all` resources for openshift namespace. If you need any particular resources I suggest you add necessary resources in your operator's .status.relatedObjects: https://github.com/openshift/cluster-samples-operator/blob/31fb491fc14faed6ebbe41a526764947069ff0a2/manifests/07-clusteroperator.yaml#L11 you should add there Templates and whichever resources you care about for debugging.
Taking a look a this one today.
Both David and I were able to verify from all the PR e2e's that the new must gather for samples now has templates Saving QE some cycles and marking verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056