kubernetes/hack/lib
Tim Hockin 7afaf23b01
Copy make's codegen logic to update-codegen.sh
The `make` rules which auto-generate some of our API stuff are
incredibly baroque, and hard to maintain.  They were originally added on
the assumption that we would stop checking generated files into git.
Since then we have moved away from that goal, and the worst problems
with generated files have been resolved.

Reasons to kill this:
* It is slow on every build, as opposed to just being slow when running
  the generators.  It is even slow to calculate that there's nothing to
  update.
* Most development work doesn't involve changing APIs.
* It only covers about half (or less) of the generated code, and making
  it cover more would be even slower.
* Approximately 1 person knows how this all works.
* We have CI to make sure changes do not get merged without updating
  this code.
* We have corner cases where this does the WRONG thing and tracking
  those down is ugly and hard in perpetuity.

So this commit puts all the same logic that WAS in the
Makefile.generated_files into update-codegen.sh.

I do not love this script, especially WRT sub-packages, but I am trying
not to boil the ocean.  I hope to follow up with some more cleanups over
time.

I have tested this manually and with the scripts and it still seems to
catch errors properly.

This includes a change to kube::util::read-array to make it not unset
variables and not over-write non-array variables.
2022-10-04 08:48:39 -07:00
..
.gitattributes Capture git export-subst strings in version.sh for 'git archive' use. 2017-11-09 16:36:27 -08:00
etcd.sh etcd: Updated to v3.5.5 2022-09-15 21:05:13 -04:00
golang.sh run hack/update-vendor.sh 2022-09-24 13:27:13 -04:00
init.sh apiserver: enable v1beta3 for apf 2022-09-21 18:54:19 -04:00
logging.sh Lower default log verbosity 2020-08-02 01:22:59 -04:00
protoc.sh drop vendor from go install paths 2022-05-05 08:47:33 -04:00
swagger.sh drop vendor from go install paths 2022-05-05 08:47:33 -04:00
test.sh Colorize string test helper results 2022-03-24 13:31:57 -04:00
util.sh Copy make's codegen logic to update-codegen.sh 2022-10-04 08:48:39 -07:00
version.sh Remove invalid comments in hack/lib/version.sh 2022-07-06 19:19:29 +08:00