Edge argo-cd error
I’m currently facing the below issue/error when attempting to install Edge:
Error: UPGRADE FAILED: rendered manifests contain a resource that already exists. Unable to continue with update: CustomResourceDefinition “applications.argoproj.io” in namespace “” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key “app.kubernetes.io/managed-by”: must be set to “Helm”; annotation validation error: missing key “meta.helm.sh/release-name”: must be set to “argo-cd”; annotation validation error: missing key “meta.helm.sh/release-namespace”: must be set to “Collibra-edge”
I suspect this is to do with this server missing an argo-cd upgrade between versions 4 and 5 - see Github article
I have tried to apply a fix by manually setting those 3 metadata parameters as follows as outlined on Github:
for crd in “applications.argoproj.io” “applicationsets.argoproj.io” “argocdextensions.argoproj.io” “appprojects.argoproj.io”; do
kubectl label --overwrite crd $crd app.kubernetes.io/managed-by=Helm
kubectl annotate --overwrite crd $crd meta.helm.sh/release-namespace=Collibra-edge
kubectl annotate --overwrite crd $crd meta.helm.sh/release-name=argo-cd
done
This was the result:
++++++++++++++++++++++++++++++++++++
customresourcedefinition.apiextensions.k8s.io/applications.argoproj.io labeled
customresourcedefinition.apiextensions.k8s.io/applications.argoproj.io annotated
customresourcedefinition.apiextensions.k8s.io/applications.argoproj.io annotated
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io" “applicationsets.argoproj.io” not found
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io" “applicationsets.argoproj.io” not found
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io" “applicationsets.argoproj.io” not found
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io" “argocdextensions.argoproj.io” not found
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io" “argocdextensions.argoproj.io” not found
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io" “argocdextensions.argoproj.io” not found
customresourcedefinition.apiextensions.k8s.io/appprojects.argoproj.io labeled
customresourcedefinition.apiextensions.k8s.io/appprojects.argoproj.io annotated
customresourcedefinition.apiextensions.k8s.io/appprojects.argoproj.io annotated
+++++++++++++++++++++++++++++++++
After attempting a reinstall I got to the installer line:
+++++++++++++++++++++++++++++++++
Waiting for job logs to become available . . . (timeout after 90 seconds)
+++++++++++++++++++++++++++++++++
Then , no response - just command line - i.e. no timeout/issues or errors - but no finalisation of the installer either.
Any help would be much appreciated.