Closed weiqiangxu closed 6 months ago
Hello, I personally solved it by git cloning the code-generator repository https://github.com/kubernetes/code-generator in the root directory of the repo. I also cd into hack before executing ./update-codegen.sh. If I don't do so, I encounter problems because the script doesn't expect that you execute it in the root directory.
Hey bro, you need to check if there is this file in the directory, or don't execute this script from the root directory, you need to execute it in the project directory
switch to a newer branch, like release-1.27
, and run go mod vendor
, and then in your project root run chmod +x ./vendor/k8s.io/code-generator/generate-groups.sh
, Add executable permissions to the script, and finally run ./hack/update-codegen.sh
in the project root
switch to a newer branch, like
release-1.27
, and rungo mod vendor
, and then in your project root runchmod +x ./vendor/k8s.io/code-generator/generate-groups.sh
, Add executable permissions to the script, and finally run./hack/update-codegen.sh
in the project root
I followed the steps above. The ./hack/update-codegen.sh
command generated codes out side of my project. My project is at /Users/jason/Desktop/projects/sample-controller
, however the generated code is at /Users/jason/Desktop/
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
./hack/update-codegen.sh ./hack/update-codegen.sh: 行 24: ../code-generator/kube_codegen.sh: No such file or directory