mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #119075 from chendave/test_gv
kubeadm: check the GV after the config migration
This commit is contained in:
		@@ -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())
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user