i've got an error when i use make deploy to deploy this project on my centos virtual machine.
which: no controller-gen in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-2.b15.el7_2.x86_64/jre//bin:/usr/local/maven/bin:/root/.ft:/root/bin)
go: creating new go.mod: module tmp
go: found sigs.k8s.io/controller-tools/cmd/controller-gen in sigs.k8s.io/controller-tools v0.2.4
/root/go/bin/controller-gen "crd:maxDescLen=0,trivialVersions=true" rbac:roleName=manager-role webhook paths="./api/v1beta1/..." output:crd:artifacts:config=config/crd/bases
go mod tidy
kubectl apply -f config/crd/bases
error: unable to recognize "config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
make: *** [install] Error 1
but everything goes well when i do the same thing on my mac.
i've got an error when i use make deploy to deploy this project on my centos virtual machine.
but everything goes well when i do the same thing on my mac.
my kubectl version is:
what did i do wrong?