// ParseAndDefaultAndValidate parses the provided manifest, validates it and
// defaults values where possible.
ParseAndDefaultAndValidate parses the provided manifest, validates it and
defaults values where possible.
// ParseAndDefaultAndValidate parses the provided manifest validates it and // defaults values where possible .
func ParseAndDefaultAndValidate(machinesManifestPath string, errorsHandler InvalidMachinesHandler) ([]*clusterv1.Machine, error) {
	machines, err := ParseManifest(machinesManifestPath)
	if err != nil {
		return nil, err
	}
	Populate(machines)
	errors := Validate(machines)
	return errorsHandler(machines, errors)
}
func ParseAndDefaultAndValidate ( machinesManifestPath string , errorsHandler InvalidMachinesHandler ) ( [ ] * clusterv1 . Machine , error ) { machines , err := ParseManifest ( machinesManifestPath ) if err != nil { return nil , err } Populate ( machines ) errors := Validate ( machines ) return errorsHandler ( machines , errors ) }
ParseAndDefaultAndValidate parses the provided manifest, validates it and
defaults values where possible.
ParseAndDefaultAndValidate parses the provided manifest validates it and defaults values where possible .