Open itroyano opened 2 months ago
@itroyano based on the error message in the Installed
status condition, I suspect that argocd itself has already been installed and the CRDs are also being managed by another controller.
it also looks like the version of OLM 1.0 shipped with the 4.16 TP is using RukPak and is a bit outdated compared to the current state of this project.
Regardless though, it seems the crux of this issue is that multiple instance of extensions are attempting to create and manage the same resources which will not be supported.
Makes sense the duplication sounds weird
Only one reference can have Controller set to true. Found "true" in references
for BundleDeployment/openshift-gitops-operator and BundleDeployment/openshift-gitops-operator'
Yeah, I think long-term we need to make sure that we have a more descriptive error message for this scenario
That one seems to be thrown by RBAC not us, right? we could check for a duplication earlier as part of the multiple-instances epic https://github.com/operator-framework/operator-controller/issues/736
@itroyano, this sounds like an from helm-operator-plugins that adds owner references to managed objects. I noticed similar duplication when I was implementing and testing the chunked release secret driver, and I think it should be fixed in both helm-operator-plugins and operator-controller main
branches.
Can we prevent the installation of an operator with v1, in case we detect v0 already has it installed?
I think that is jumping to the conclusion that this issue is caused by duplicate installations. What I saw (and believe I fixed) was an issue where the ownerref-injecting client had a bug and would inject two different ownerrefs for the same parent object.
And that's what this looks like as well:
Found "true" in references for BundleDeployment/openshift-gitops-operator and BundleDeployment/openshift-gitops-operator'
Version: OpenShift 4.16 tech preview (enabled by feature gate)