Add on-prem namespaces to relatedObjects
Previously the kni namespace was explicitly listed in must-gather,
but when I went to add the other on-prem ones it was pointed out
that this should probably be done with relatedObjects. This adds
the namespaces here so we don't need anything in must-gather itself.
@@ -72,6 +72,11 @@ func (optr *Operator) syncRelatedObjects() error {
{Group: "machineconfiguration.openshift.io", Resource: "machineconfigs"},
// gathered because the machineconfigs created container bootstrap credentials and node configuration that gets reflected via the API and is needed for debugging
{Group: "", Resource: "nodes"},
+ // Gathered for the on-prem services running in static pods.
+ {Resource: "namespaces", Name: "openshift-kni-infra"},
+ {Resource: "namespaces", Name: "openshift-openstack-infra"},
+ {Resource: "namespaces", Name: "openshift-ovirt-infra"},
+ {Resource: "namespaces", Name: "openshift-vsphere-infra"},
}
if !equality.Semantic.DeepEqual(coCopy.Status.RelatedObjects, co.Status.RelatedObjects) {
