Exemple #1
0
func validateValuesFile(linter *support.Linter, valuesPath string) error {
	_, err := chartutil.ReadValuesFile(valuesPath)
	if err != nil {
		return fmt.Errorf("unable to parse YAML\n\t%s", err)
	}
	return nil
}
Exemple #2
0
func validateValuesFile(linter *support.Linter, valuesPath string) (lintError support.LintError) {
	_, err := chartutil.ReadValuesFile(valuesPath)
	if err != nil {
		lintError = fmt.Errorf("values.yaml is malformed: %s", err.Error())
	}
	return
}