GoogleCloudPlatform / flink-on-k8s-operator

[DEPRECATED] Kubernetes operator for managing the lifecycle of Apache Flink and Beam applications.
Apache License 2.0
658 stars 266 forks source link

installing the operator via make deploy giving error #480

Open mootezbessifi opened 2 years ago

mootezbessifi commented 2 years ago

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
gonzojive commented 2 years ago

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 commented 2 years ago

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

gonzojive commented 2 years ago

Installing a historical version of controller-gen avoids the above error:

go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.0

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