crossplane-contrib/provider-argocd

Getting no matches for kind "ProviderConfig" in version "argocd.crossplane.io/v1alpha1"

kshitijcode opened this issue · 4 comments

What happened?

We were trying to setup ArgoCD cross plane provider with cross-plane following the steps mentioned in the ReadME.

When trying to run

cat << EOF | kubectl apply -f - apiVersion: argocd.crossplane.io/v1alpha1 kind: ProviderConfig metadata: name: argocd-provider spec: serverAddr: argocd-server.argocd.svc:443 insecure: true plainText: false credentials: source: Secret secretRef: namespace: crossplane-system name: argocd-credentials key: authToken EOF

it gives the following error

error: unable to recognize "STDIN": no matches for kind "ProviderConfig" in version "argocd.crossplane.io/v1alpha1"

All the cross-plane pods are healthy.

It seems the CRDs in package/crds haven't been installed. If you install the provider through Crossplane as a package, it will do the installation for you. Otherwise (i.e. for local debugging) you have to do it manually.

I installed it using
`kubectl create namespace crossplane-system
helm repo add crossplane-stable https://charts.crossplane.io/stable
helm repo update

helm install crossplane --namespace crossplane-system crossplane-stable/crossplane
`

That way you only install Crossplane, not the provider or its CRDs. Please follow the Crossplane Docs to see how to install providers.

Closing this, as this is not related to the provider itself. Feel free to reopen it if it appears otherwise.