Skip to content

Commit ac53575

Browse files
committed
Fix vendoring for graduation of scheduling/v1alpha1 API to v1
module k8s.io/api@latest (v0.36.2) does not contain package k8s.io/api/scheduling/v1alpha1. Hypershift still has dependencies that import the removed package. So, created a compatability shim in the vendor directory that re-exports scheduling/v1 types as v1alpha1 using Go type aliases.
1 parent eb66e60 commit ac53575

4 files changed

Lines changed: 88 additions & 0 deletions

File tree

vendor/k8s.io/api/scheduling/v1alpha1/doc.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/api/scheduling/v1alpha1/register.go

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/k8s.io/api/scheduling/v1alpha1/types.go

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ k8s.io/api/rbac/v1
212212
k8s.io/api/rbac/v1alpha1
213213
k8s.io/api/rbac/v1beta1
214214
k8s.io/api/scheduling/v1
215+
k8s.io/api/scheduling/v1alpha1
215216
k8s.io/api/scheduling/v1beta1
216217
k8s.io/api/storage/v1
217218
k8s.io/api/storage/v1alpha1

0 commit comments

Comments
 (0)