mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	apimachinery: handle duplicated and conflicting type registration
This commit is contained in:
		@@ -52,6 +52,10 @@ func NewMetadataCodecFactory() serializer.CodecFactory {
 | 
			
		||||
		if kind.Version == runtime.APIVersionInternal {
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		if kind == api.Unversioned.WithKind("Status") {
 | 
			
		||||
			// this is added below as unversioned
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		metaOnlyObject := gvkToMetadataOnlyObject(kind)
 | 
			
		||||
		scheme.AddKnownTypeWithName(kind, metaOnlyObject)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user