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:
@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 GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Kishan Patel\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Kishan Patel\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
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 CGO_ENABLED=1
set GOMOD=C:\k6-operator\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-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