mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Refactor the API registration and installation
This commit is contained in:
@@ -71,7 +71,7 @@ func TestDecodeSinglePod(t *testing.T) {
|
||||
t.Errorf("expected:\n%#v\ngot:\n%#v\n%s", pod, podOut, string(json))
|
||||
}
|
||||
|
||||
for _, gv := range registered.GroupVersionsForGroup("") {
|
||||
for _, gv := range registered.EnabledVersionsForGroup(api.GroupName) {
|
||||
externalPod, err := testapi.Default.Converter().ConvertToVersion(pod, gv.String())
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
@@ -137,7 +137,7 @@ func TestDecodePodList(t *testing.T) {
|
||||
t.Errorf("expected:\n%#v\ngot:\n%#v\n%s", podList, &podListOut, string(json))
|
||||
}
|
||||
|
||||
for _, gv := range registered.GroupVersionsForGroup("") {
|
||||
for _, gv := range registered.EnabledVersionsForGroup(api.GroupName) {
|
||||
externalPodList, err := testapi.Default.Converter().ConvertToVersion(podList, gv.String())
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user