banzaicloud/dast-operator

Error: INSTALLATION FAILED: failed to install CRD crds/security.banzaicloud.io_dasts.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

elmawardy opened this issue · 2 comments

Describe the bug
Installation fails on k8s version 1.23

Steps to reproduce the issue:
#helm repo add banzaicloud https://kubernetes-charts.banzaicloud.com/
#helm install dast-operator banzaicloud/dast-operator

Screenshots
image

Additional context
#Kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.3", GitCommit:"816c97ab8cff8a1c72eccca1026f7820e93e0d25", GitTreeState:"clean", BuildDate:"2022-01-26T02:20:15Z", GoVersion:"go1.17.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23+", GitVersion:"v1.23.3-2+d441060727c463", GitCommit:"d441060727c4632b67d09c9118a36a8590308676", GitTreeState:"clean", BuildDate:"2022-01-26T21:57:05Z", GoVersion:"go1.17.6", Compiler:"gc", Platform:"linux/amd64"}

The problem for this is based on the Kubernetes API deprecating the used apiVersion in the last versions. The correct apiVersion is now apiextensions.k8s.io/v1.

I'll try to send a PR for this.

Ah, this is actually fixed in the chart. However, version 0.4.0 wasn't deployed to the repository yet.

As a workaround, you can download this repo and use helm install dast-operator <path to charts/dast-operator> to install it.