Commit Graph

5 Commits

Author SHA1 Message Date
Kuba Tużnik 5df68a49ca CA: update-deps.sh: move tidy after all gets
There doesn't seem to be any benefit to tidying after
getting every dependency pkg. And trying to tidy after
every get seems bugged:

* Some of the k8s.io dependencies depend on each other.
  For example k8s.io/client-go depends on k8s.io/api.
* We bump k8s.io/api to a new version, and that version removes
  some pkg (e.g. replaces v1alpha1 with v1alpha2), that
  some other dependency (e.g. k8s.io/client-go) requires.
* If we try to tidy immediately after getting k8s.io/api, this can
  fail because the required new k8s.io/api version doesn't have the
  removed pkg that k8s.io/client-go (still at a lower version
  since we haven't processed it yet) requires.

Getting all of the dependencies at the new versions first, and then
tidying once afterwards solves this issue.
2024-11-27 18:30:38 +01:00
Daniel Kłobuszewski 3b89cd5a0c Prevent update-deps.sh from creating vendor dir
We no longer keep vendored files in CA repo.
2024-10-18 14:51:58 +02:00
Yuki Iwai 16b213c86c Clean up update-deps.sh
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-03-10 07:07:22 +09:00
Yuki Iwai 108385eb84 Extend update-deps.sh so that we can automatically update k8s libraries in the apis pkg
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-03-10 02:33:10 +09:00
Yuki Iwai bd32754361 ClusterAutoscaler: Put APIs in a separate go module
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-03-10 02:32:22 +09:00