我正在嘗試出口操作員根據域限制出口呼叫。我正在使用 Hyper-V VM,并且我具有所有先決條件:Ubuntu 18用于推送映像的 Azure 存儲庫Kubebuilder用于代碼生成Kustomize用于構建庫伯內特清單CoreDns(默認使用 k3s) 容器正在運行Golang:go version go1.16.5 linux/amd64但是,雖然本地測試給出了以下錯誤:make runroot@Ubuntu18-Virtual-Machine:~/egress-operator# make rungo: creating new go.mod: module tmpgo get: added sigs.k8s.io/controller-tools v0.2.4/root/go/bin/controller-gen object:headerFile=./hack/boilerplate.go.txt paths="./..."Error: go [list -e -json -compiled=true -test=false -export=false -deps=true -find=false -tags ignore_autogenerated -- ./...]: exit status 2: # runtime/cgocgo: exec gcc: exec: "gcc": executable file not found in $PATH此外,在配置映射中編輯核心部署和核心文件后,如核心插件設置中所述,我在執行make deploy命令時看到打擊錯誤:root@Ubuntu18-Virtual-Machine:~/egress-operator# make deploy IMG=MY_REPO/egress-operator:v0.1go: creating new go.mod: module tmpgo get: added sigs.k8s.io/controller-tools v0.2.4/root/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/basesError: go [list -e -json -compiled=true -test=false -export=false -deps=true -find=false -tags ignore_autogenerated -- ./...]: exit status 2: # runtime/cgocgo: exec gcc: exec: "gcc": executable file not found in $PATH有人可以讓我知道如何解決這個問題嗎?
- 1 回答
- 0 關注
- 157 瀏覽
添加回答
舉報
0/150
提交
取消