mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Fix node namespace.
This commit is contained in:
		@@ -546,6 +546,9 @@ func ValidateBoundPod(pod *api.BoundPod) (errors []error) {
 | 
			
		||||
// ValidateMinion tests if required fields in the minion are set.
 | 
			
		||||
func ValidateMinion(minion *api.Minion) errs.ValidationErrorList {
 | 
			
		||||
	allErrs := errs.ValidationErrorList{}
 | 
			
		||||
	if len(minion.Namespace) != 0 {
 | 
			
		||||
		allErrs = append(allErrs, errs.NewFieldInvalid("namespace", minion.Namespace))
 | 
			
		||||
	}
 | 
			
		||||
	if len(minion.Name) == 0 {
 | 
			
		||||
		allErrs = append(allErrs, errs.NewFieldRequired("name", minion.Name))
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user