Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

installing the operator via make deploy giving error #480

Open
mootezbessifi opened this issue Jan 17, 2022 · 3 comments
Open

installing the operator via make deploy giving error #480

mootezbessifi opened this issue Jan 17, 2022 · 3 comments

Comments

@mootezbessifi
Copy link

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
Copy link

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
Copy link

It seems the trivialVersions argument is no longer supported by controller-gen as of kubernetes-sigs/controller-tools@09f1952.

@gonzojive
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants