<p>I am trying to install KEDA through ArgoCD. Am getting the below error.</p>
<pre><code>ERROR controller-runtime.source if kind is a CRD, it should be installed before calling Start {&quot;kind&quot;: &quot;ScaledJob.keda.sh&quot;, &quot;error&quot;: &quot;no matches for kind \&quot;ScaledJob\&quot; in version \&quot;keda.sh/v1alpha1\&quot;&quot;} github.com/go-logr/zapr.(*zapLogger).Error /go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/source/source.go:117 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:140 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:175 sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/manager/internal.go:661 2020-11-11T12:56:52.245Z ERROR controller-runtime.source if kind is a CRD, it should be installed before calling Start {&quot;kind&quot;: &quot;ScaledObject.keda.sh&quot;, &quot;error&quot;: &quot;no matches for kind \&quot;ScaledObject\&quot; in version \&quot;keda.sh/v1alpha1\&quot;&quot;} github.com/go-logr/zapr.(*zapLogger).Error /go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/source/source.go:117 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:140 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:175 sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/manager/internal.go:661 2020-11-11T12:56:52.245Z ERROR setup problem running manager {&quot;error&quot;: &quot;no matches for kind \&quot;ScaledJob\&quot; in version \&quot;keda.sh/v1alpha1\&quot;&quot;} github.com/go-logr/zapr.(*zapLogger).Error /go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128 main.main /workspace/main.go:119 runtime.main/usr/local/go/src/runtime/proc.go:204
</code></pre>
<p><strong>Specifications:</strong></p>
<p>KEDA Version: 2.0
Kubernetes Version: 1.18</p>

fel3180
<p>I was able to resolve this issue. I am going to share what I did, but if you want more background information I found this comment on the argo repo to be helpful: <a href="https://github.com/argoproj/argo-cd/issues/3663#issuecomment-712616591" rel="nofollow noreferrer">https://github.com/argoproj/argo-cd/issues/3663#issuecomment-712616591</a></p>
<p>If you look at the difference in the files in the KEDA helm chart between version 2.0.0-rc2 and version 2.0.0, some changes were made. I reverted the following changes then repackaged the helm chart. The specific differences I am referencing are:</p>
<ul>
<li>KEDA 2.0.0 chart does not have a &quot;crd.yaml&quot; file in the templates directory</li>
<li>KEDA 2.0.0 values.yaml does not have the spec &quot;customResourceDefinition: \n\t create: true&quot;</li>
<li>KEDA 2.0.0 does not have the metadata annotation &quot;helm.sh/hook: crd install&quot;</li>
<li>KEDA 2.0.0 changed the apiVesion of the metrics-apiservice template from .../v1beta to .../v1.</li>
</ul>
<p>I am not certain that it was neccesary to make all four of those modifications, but doing so fixed the issue for me.</p>
