flink-on-k8s-operator
flink-on-k8s-operator copied to clipboard
installing the operator via make deploy giving error
Dears when i am trying to install the operator from source using the make deploy command, i am getting the below error:
FYS
go: unknown subcommand "mod"
Run 'go help' for usage.
Makefile:60: recipe for target 'controller-gen' failed
make: *** [controller-gen] Error 2
I tried installing controller-gen with this:
go install sigs.k8s.io/controller-tools/cmd/controller-gen@latest
Which results in a new error:
Error: unable to parse option "crd:maxDescLen=0,trivialVersions=true": [unknown argument "trivialVersions" (at <input>:1:29) extra arguments provided: "true" (at <input>:1:30)]
Usage:
controller-gen [flags]
It seems the trivialVersions argument is no longer supported by controller-gen as of https://github.com/kubernetes-sigs/controller-tools/commit/09f1952580d4e40a3aab8b1c4f6bfc8de3ae0b0b.
Installing a historical version of controller-gen avoids the above error:
go install sigs.k8s.io/controller-tools/cmd/[email protected]
but introduces a new one:
/home/red/go/bin/controller-gen "crd:maxDescLen=0,trivialVersions=true" rbac:roleName=manager-role webhook paths="./api/v1beta1/..." output:crd:artifacts:config=config/crd/bases
SideEffects is required for creating v1 {Mutating,Validating}WebhookConfiguration