INNER CODE UNIT · Go

ProcessHelmTemplates

FairwindsOps/polaris · cmd/polaris/audit.go:140

func ProcessHelmTemplates(helmChart string, helmValues []string, helmSkipTests bool) (string, error) {
	cmd := exec.Command("helm", "dependency", "update", helmChart)
	output, err := cmd.CombinedOutput()
	if err != nil {
		logrus.Error(string(output))
		return "", err
	}

	dir, err := os.MkdirTemp("", "*")
	if err != nil {
		return "", err
	}
	params := []string{
		"template", helmChart,
		"--generate-name",
		"--output-dir",
		dir,
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…