Closed varshaprasad96 closed 4 years ago
Based on some discussion with the OLM team, I think we can immediately improve on solving this problem by ignoring the install plan altogether and deleting only the CSV and CRDs.
We can lookup the CSV using Name: sub.Status.InstalledCSV, Namespace: sub.GetNamespace()
.
And then lookup the CRDs from csv.Status.RequirementStatus
filtering on req.Kind == crdKind
.
When multiple install plans are present for single operator, select the resources of install plan containing the installed CSV while uninstalling the operator.