mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #1250 from dchen1107/cleanup
Small clean up in validation.
This commit is contained in:
		@@ -228,8 +228,8 @@ func ValidateManifest(manifest *api.ContainerManifest) errs.ErrorList {
 | 
			
		||||
	} else if !supportedManifestVersions.Has(strings.ToLower(manifest.Version)) {
 | 
			
		||||
		allErrs = append(allErrs, errs.NewFieldNotSupported("version", manifest.Version))
 | 
			
		||||
	}
 | 
			
		||||
	allVolumes, errs := validateVolumes(manifest.Volumes)
 | 
			
		||||
	allErrs = append(allErrs, errs.Prefix("volumes")...)
 | 
			
		||||
	allVolumes, vErrs := validateVolumes(manifest.Volumes)
 | 
			
		||||
	allErrs = append(allErrs, vErrs.Prefix("volumes")...)
 | 
			
		||||
	allErrs = append(allErrs, validateContainers(manifest.Containers, allVolumes).Prefix("containers")...)
 | 
			
		||||
	allErrs = append(allErrs, validateRestartPolicy(&manifest.RestartPolicy).Prefix("restartPolicy")...)
 | 
			
		||||
	return allErrs
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user