The new script is a completely different format :(
See e.g. kubernetes/kubernetes#117262 for examples.
Changes required here:
Passing through the git directory, even when using worktrees, because kube_codegen.sh directly uses git for things (git grep, git ls-files)
Patching kube_codegen.sh because it expects that our types files are exactly types.go, but we have virtualmachine_types.go and virtualmachinemigration_types.go.
There are further breaking changes in later kubernetes versions, but we don't need to deal with those quite yet.
Extracted from #1048.
Notes for review: Please check it runs locally.
Do not approve this PR unless you have checked that make generate works for you.
The new script is a completely different format :( See e.g. kubernetes/kubernetes#117262 for examples.
Changes required here:
types.go
, but we havevirtualmachine_types.go
andvirtualmachinemigration_types.go
.There are further breaking changes in later kubernetes versions, but we don't need to deal with those quite yet.
Extracted from #1048.
Notes for review: Please check it runs locally. Do not approve this PR unless you have checked that
make generate
works for you.