ECK 1.4.0 - disable elastic agent and beats

Hi,

I'm trying to update the Elastic operator from 1.0.1 to 1.4.0.
After the update, the operator is looking for Agent and Beat CRDs. Because I'm using different tools for collecting logs I would like to disable Agent and Beat. Is there a way how to turn off these features?
I would like to use just Elasticsearch and Kibana.

The error I'm getting:

{"log.level":"error","@timestamp":"2021-02-18T10:09:47.505Z","log.logger":"controller-runtime.source","message":"if kind is a CRD, it should be installed before calling Start","service.version":"1.4.0+4aff0b98","service.type":"eck","ecs.version":"1.4.0","kind":"Agent.agent.k8s.elastic.co","error":"no matches for kind \"Agent\" in version \"agent.k8s.elastic.co/v1alpha1\"","error.stack_trace":"sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/source/source.go:117\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:143\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:184\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/manager/internal.go:661"}
{"log.level":"error","@timestamp":"2021-02-18T10:09:50.756Z","log.logger":"controller-runtime.source","message":"if kind is a CRD, it should be installed before calling Start","service.version":"1.4.0+4aff0b98","service.type":"eck","ecs.version":"1.4.0","kind":"EnterpriseSearch.enterprisesearch.k8s.elastic.co","error":"no matches for kind \"EnterpriseSearch\" in version \"enterprisesearch.k8s.elastic.co/v1beta1\"","error.stack_trace":"sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/source/source.go:117\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:143\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:184\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/manager/internal.go:661"}
{"log.level":"error","@timestamp":"2021-02-18T10:09:50.756Z","log.logger":"controller-runtime.manager","message":"error received after stop sequence was engaged","service.version":"1.4.0+4aff0b98","service.type":"eck","ecs.version":"1.4.0","error":"no matches for kind \"EnterpriseSearch\" in version \"enterprisesearch.k8s.elastic.co/v1beta1\"","error.stack_trace":"sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).engageStopProcedure.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/manager/internal.go:521"}
{"log.level":"error","@timestamp":"2021-02-18T10:09:54.004Z","log.logger":"controller-runtime.source","message":"if kind is a CRD, it should be installed before calling Start","service.version":"1.4.0+4aff0b98","service.type":"eck","ecs.version":"1.4.0","kind":"Beat.beat.k8s.elastic.co","error":"no matches for kind \"Beat\" in version \"beat.k8s.elastic.co/v1beta1\"","error.stack_trace":"sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/source/source.go:117\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:143\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:184\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/manager/internal.go:661"}
{"log.level":"error","@timestamp":"2021-02-18T10:09:54.004Z","log.logger":"controller-runtime.manager","message":"error received after stop sequence was engaged","service.version":"1.4.0+4aff0b98","service.type":"eck","ecs.version":"1.4.0","error":"no matches for kind \"Beat\" in version \"beat.k8s.elastic.co/v1beta1\"","error.stack_trace":"sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).engageStopProcedure.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/manager/internal.go:521"}

Best regards,
Daniel

Unfortunately there is currently no way to disable the support for Agent and Beats completely. The very least you have to do is to install the new CRDs. You can then chose not use them and they should not get in your way if you do not create instances based on the Beats or Agent CRDs.

Hope that helps!

I did it as you write and it works perfectly. Thanks!