mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #20648 from deads2k/fix-validation
Auto commit by PR queue bot
This commit is contained in:
		@@ -279,7 +279,7 @@ func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn Val
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		if len(meta.Namespace) != 0 {
 | 
			
		||||
			allErrs = append(allErrs, field.Forbidden(fldPath, "not allowed on this type"))
 | 
			
		||||
			allErrs = append(allErrs, field.Forbidden(fldPath.Child("namespace"), "not allowed on this type"))
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	allErrs = append(allErrs, ValidateNonnegativeField(meta.Generation, fldPath.Child("generation"))...)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user