INNER CODE UNIT · Go

getChart

databus23/helm-diff · cmd/helm.go:169

func getChart(release, namespace, kubeContext string) (string, error) {
	args := []string{helmGetSubcmd, "all", release, "--template", "{{.Release.Chart.Name}}"}
	if namespace != "" {
		args = append(args, "--namespace", namespace)
	}
	if kubeContext != "" {
		args = append(args, "--kube-context", kubeContext)
	}
	cmd := exec.Command(os.Getenv("HELM_BIN"), args...)
	out, err := outputWithRichError(cmd)
	if err != nil {
		return "", err
	}
	return string(out), nil
}

func (d *diffCmd) template(isUpgrade bool) ([]byte, error) {
	flags := []string{}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…