flink-on-k8s-operator icon indicating copy to clipboard operation
flink-on-k8s-operator copied to clipboard

installing the operator via make deploy giving error

Open mootezbessifi opened this issue 3 years ago • 3 comments

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
 

mootezbessifi avatar Jan 17 '22 14:01 mootezbessifi

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]

gonzojive avatar May 20 '22 16:05 gonzojive

It seems the trivialVersions argument is no longer supported by controller-gen as of https://github.com/kubernetes-sigs/controller-tools/commit/09f1952580d4e40a3aab8b1c4f6bfc8de3ae0b0b.

gonzojive avatar May 20 '22 16:05 gonzojive

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

gonzojive avatar May 20 '22 16:05 gonzojive