kubernetes-sigs / scheduler-plugins

Repository for out-of-tree scheduler plugins based on scheduler framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code generation incorrect since 1.29 bump

SebMuir-Smith opened this issue · comments

Area

  • Scheduler
  • Controller
  • Helm Chart
  • Documents

Other components

Code Generation

What happened?

Commit 99de67d moved from generate-groups.sh/generate-internal-groups.sh to kube_codegen.sh for code generation. The former was a callable script, and the latter simply defines functions that should be called separately.

This transition doesn't seem to have been done correctly; kube_codegen.sh is being called as if it was an executable script, which does absolutely nothing.

The codegen now looks to be broken and seemingly will not generate anything when it is run.

What did you expect to happen?

Migration should have been done according to the new usage of kube_codegen.sh, i.e. https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/code-generator/examples/hack/update-codegen.sh

How can we reproduce it (as minimally and precisely as possible)?

  1. Delete files that were previously generated by generate-groups.sh/generate-internal-groups.sh.
  2. Run ./hack/update-codegen.sh
  3. Observe that files were not replaced

Anything else we need to know?

No response

Kubernetes version

N/A

Scheduler Plugins version

N/A

Thanks for the report. I created a revert PR #747 to fix this issue.

#748 is created to track the codegen script's migration.