Use test-only API types for tests that depend on API graduations #129311
Labels
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
#128279 (comment) and https://github.com/kubernetes/kubernetes/pull/128279/files?diff=unified&w=1#r1882520074 broke when bumping the master branch to 1.33 due to tests that depend on buildin APIs that meet specific graduation criteria of what is being tested, and stop working once the minor version of kubernetes increased to the point that the criteria falls out of our support/emulation windows.
We should instead modify these tests to depend on a test-only API that will stay valid forever, and don't depend on the k8s minor version.
This should be feasible to do. Here's an existing test that has some test-only APIs that we could crib from:
kubernetes/staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go
Lines 184 to 212 in 9274a58
/sig api-machinery
/cc @Jefftree @siyuanfoundation @liggitt
The text was updated successfully, but these errors were encountered: