-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make deploy - results in -> ~/go/bin/controller-gen: No such file or directory #104
Comments
Any good docker images that are known to build correctly ? |
I guess docker pull grafana/k6 |
Also having this same issue on ubuntu |
got me to a new error
|
Or should that be;
|
|
@adligo did you find a solution to this error? /Users/x/go/bin/controller-gen: No such file or directory |
Hi @adligo Please look into Makefile; when Lines 111 to 124 in 57e4b3e
make controller-gen is invoked by make deploy but It seems to fail in your case. So it would be useful to debug why exactly it fails. Either way, the commands can be found in Makefile as can be seen in this snippet.
|
Sure you should add the instructions for which controller-gen you need installed (or suggest installing) as part of your dependencies / instructions. I have tried a few but was still unsucessful. |
@adligo did the version in Makefile work? First try to follow the existing commands from As for your suggestion, I personally think that at this point Makefile in root directory is verbose enough for those who need to find the version of |
Hi @adligo
First, I set my GOBIN and GOPATH as /home/go/bin/controller-gen "crd:crdVersions=v1" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
cd config/manager && /home/go/bin/kustomize edit set image controller=ghcr.io/grafana/operator:latest
/home/go/bin/kustomize build config/default | kubectl apply -f -
namespace/k6-operator-system unchanged
customresourcedefinition.apiextensions.k8s.io/k6s.k6.io configured
serviceaccount/k6-operator-controller unchanged
role.rbac.authorization.k8s.io/k6-operator-leader-election-role unchanged
clusterrole.rbac.authorization.k8s.io/k6-operator-manager-role configured
clusterrole.rbac.authorization.k8s.io/k6-operator-metrics-reader unchanged
clusterrole.rbac.authorization.k8s.io/k6-operator-proxy-role unchanged
rolebinding.rbac.authorization.k8s.io/k6-operator-leader-election-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/k6-operator-manager-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/k6-operator-proxy-rolebinding unchanged
service/k6-operator-controller-manager-metrics-service unchanged
deployment.apps/k6-operator-controller-manager unchanged |
@adligo If using go 1.18, I installed following two commands manually:
and after that |
Thanks @taiyow. That worked. |
The suggested fixes are now part of Makefile in |
I've tried this, but it doesn't work. The directory "bin/controller-gen" is not created. Did anyone meet the same error? |
Hi All,
I have a issue getting make deploy to work;
macOs 12.2.1 (21D62)
kubectl version --client
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:51:05Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"darwin/amd64"}
go version go1.18 darwin/amd64
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
{Version:kustomize/v4.5.2 GitCommit:9091919699baf1c5a5bf71b32ca73a993e98088b BuildDate:2022-02-09T23:19:28Z GoOs:darwin GoArch:amd64}
The output looks as follows with some privacy modifications (i.e. -> ~)
...
go: added sigs.k8s.io/yaml v1.2.0
~/go/bin/controller-gen "crd:trivialVersions=true,crdVersions=v1" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
/bin/sh: ~/go/bin/controller-gen: No such file or directory
Please Help, & TIA :)
The text was updated successfully, but these errors were encountered: