Open VincentZhangy opened 3 years ago
Hi Vincent,
I believe you're hitting that bug, which only occurs for recent version of k8s: https://github.com/GoogleCloudPlatform/flink-on-k8s-operator/issues/266
There exists a workaround: simply manually edit the MakeFile
as follows (line 65) (cf also this solution: https://github.com/GoogleCloudPlatform/flink-on-k8s-operator/issues/266#issuecomment-659938138)
- go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0 ;\
+ go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.4 ;\
Hi Vincent,
I believe you're hitting that bug, which only occurs for recent version of k8s: #266
There exists a workaround: simply manually edit the
MakeFile
as follows (line 65) (cf also this solution: #266 (comment))- go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0 ;\ + go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.4 ;\
thank you
make deploy IMG=127.0.0.1:5000/flink-operator:v1.7 /home/zhangyun/gopath/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 Warning: apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition The CustomResourceDefinition "flinkclusters.flinkoperator.k8s.io" is invalid: