Issue to deploy k6-operator

Hi, I am trying deploy k6 operator in k8 cluster. I am getting below error. can you please help how to resolve. I am new to k8

k6-operator % make deploy
go: creating new go.mod: module tmp
go: added GitHub - fatih/color: Color package for Go (golang) v1.7.0
go: added GitHub - gobuffalo/flect: An inflection engine for golang v0.2.0
go: added GitHub - gogo/protobuf: [Deprecated] Protocol Buffers for Go with Gadgets v1.3.1
go: added GitHub - google/gofuzz: Fuzz testing for go. v1.1.0
go: added GitHub - inconshreveable/mousetrap: Detect starting from Windows explorer v1.0.0
go: added GitHub - json-iterator/go: A high-performance 100% compatible drop-in replacement of "encoding/json" v1.1.8
go: added GitHub - mattn/go-colorable v0.1.2
go: added GitHub - mattn/go-isatty v0.0.8
go: added GitHub - modern-go/concurrent: concurrency utilities v0.0.0-20180306012644-bacd9c7ef1dd
go: added GitHub - modern-go/reflect2: reflect api without runtime reflect.Value cost v1.0.1
go: added GitHub - spf13/cobra: A Commander for modern Go CLI interactions v0.0.5
go: added GitHub - spf13/pflag: Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags. v1.0.5
go: added The Go Programming Language v0.0.0-20191004110552-13f9640d40b9
go: added The Go Programming Language v0.0.0-20191022100944-742c48ecaeb7
go: added The Go Programming Language v0.3.2
go: added The Go Programming Language v0.0.0-20190920225731-5eefd052ad72
go: added v0.9.1
go: added v2.2.8
go: added v3.0.0-20190905181640-827449938966
go: added v0.18.2
go: added v0.18.2
go: added v0.18.2
go: added v1.0.0
go: added v0.0.0-20200324210504-a9aa75ae1b89
go: added GitHub - kubernetes-sigs/controller-tools: Tools to use with the controller-runtime libraries v0.3.0
go: added v3.0.0
go: added GitHub - kubernetes-sigs/yaml: A better way to marshal and unmarshal YAML in Golang v1.2.0
/Users/myname/go/bin/controller-gen “crd:trivialVersions=true,crdVersions=v1” rbac:roleName=manager-role webhook paths=“./…” output:crd:artifacts:config=config/crd/bases
/bin/sh: /Users/myname/go/bin/controller-gen: No such file or directory
make: *** [manifests] Error 127

Hi @ppyneni,

Sorry for the delay! This seems like a problem with the environment, not with k8s. Could you please check how your Golang is setup? I.e. what do these commands return:

go env
go version

@olha I am trying it on Windows and still stuck with above error.
Any ideas to try?

Kishan Patel@DESKTOP /c/k6-operator (main)
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Kishan Patel\AppData\Local\go-build
set GOENV=C:\Users\Kishan Patel\AppData\Roaming\go\env
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOMODCACHE=C:\Users\Kishan Patel\go\pkg\mod
set GOOS=windows
set GOPATH=C:\Users\Kishan Patel\go
set GOPROXY=,direct
set GOROOT=C:\Program Files\Go
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.19.3
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set GOMOD=C:\k6-operator\go.mod
set CGO_CFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -Wl,–no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\KISHAN~1\AppData\Local\Temp\go-build3974364266=/tmp/go-build -gno-record-gcc-switches

Kishan Patel@DESKTOP /c/k6-operator (main)
$ go version
go version go1.19.3 windows/amd64

Kishan Patel@DESKTOP /c/k6-operator (main)
$ make deploy
which: no controller-gen in (/c/Users/Kishan Patel/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/usr/bin:/mingw64/bin:/usr/bin:/c/Users/Kishan Patel/bin:/c/Program Files/Common Files/Oracle/Java/javapath:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/WINDOWS/System32/OpenSSH:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/150/Tools/Binn:/c/Program Files/Microsoft SQL Server/150/Tools/Binn:/c/Program Files/Microsoft SQL Server/150/DTS/Binn:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/150/DTS/Binn:/c/Program Files/Azure Data Studio/bin:/cmd:/c/Program Files (x86)/WinMerge:/c/Program Files/nodejs:/c/ProgramData/chocolatey/bin:/c/Program Files/k6:/c/Program Files/PostgreSQL/13/bin:/c/Program Files/PostgreSQL/13/lib:/c/Program Files/dotnet:/c/Program Files (x86)/sfdx/bin:/c/Program Files (x86)/Microsoft SQL Server/110/Tools/Binn:/c/Program Files/Microsoft SQL Server/110/Tools/Binn:/c/Program Files/Microsoft SQL Server/110/DTS/Binn:/c/Program Files/Docker/Docker/resources/bin:/c/Program Files/Go/bin:/c/Users/Kishan Patel/AppData/Local/Microsoft/WindowsApps:/c/Users/Kishan Patel/.dotnet/tools:/c/Program Files/Azure Data Studio/bin:/c/Users/Kishan Patel/AppData/Local/Programs/Microsoft VS Code/bin:/c/Users/Kishan Patel/kube:/c/Program Files/JetBrains/IntelliJ IDEA Community Edition 2021.1.2/bin:/c/Users/Kishan Patel/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0/LocalCache/local-packages/Python39/Scripts:/c/Users/Kishan Patel/AppData/Roaming/npm:/c/Program Files (x86)/sfdx/bin:/c/Users/Kishan Patel/go/bin:/usr/bin/vendor_perl:/usr/bin/core_perl)
go: creating new go.mod: module tmp
C:\Users\Kishan Patel\go/bin/controller-gen “crd:trivialVersions=true,crdVersions=v1” rbac:roleName=manager-role webhook paths=“./…” output:crd:artifacts:config=config/crd/bases
/usr/bin/sh: C:UsersKishan: command not found
make: *** [Makefile:89: manifests] Error 127