Fix other linters on modified lines

This commit is contained in:
Katrina Verey
2022-08-10 18:50:28 -04:00
parent f6b72077c8
commit 55a37de686
10 changed files with 19 additions and 11 deletions

View File

@@ -210,7 +210,7 @@ func (p *HelmChartInflationGeneratorPlugin) writeValuesBytes(
return "", fmt.Errorf("cannot create tmp dir to write helm values")
}
path := filepath.Join(p.tmpDir, p.Name+"-kustomize-values.yaml")
return path, os.WriteFile(path, b, 0644)
return path, errors.Wrap(os.WriteFile(path, b, 0644), "failed to write values file")
}
func (p *HelmChartInflationGeneratorPlugin) cleanup() {