diff --git a/cmd/kubeadm/app/util/config/common_test.go b/cmd/kubeadm/app/util/config/common_test.go index c1e7db1d222..8a5ee108cb6 100644 --- a/cmd/kubeadm/app/util/config/common_test.go +++ b/cmd/kubeadm/app/util/config/common_test.go @@ -451,6 +451,15 @@ func TestMigrateOldConfig(t *testing.T) { t.Fatalf("migration failed to produce config kind: %s", expectedKind) } } + expectedGV := gv + if test.allowExperimental { + expectedGV = gvExperimental + } + for _, gvk := range gvks { + if gvk.GroupVersion().String() != expectedGV { + t.Errorf("GV mismatch, expected GV: %s, got GV: %s", expectedGV, gvk.GroupVersion().String()) + } + } } }) }