MCPcopy Index your code
hub / github.com/databus23/helm-diff / getChart

Function getChart

cmd/helm.go:170–184  ·  view source on GitHub ↗
(release, namespace, kubeContext string)

Source from the content-addressed store, hash-verified

168}
169
170func getChart(release, namespace, kubeContext string) (string, error) {
171 args := []string{"get", "all", release, "--template", "{{.Release.Chart.Name}}"}
172 if namespace != "" {
173 args = append(args, "--namespace", namespace)
174 }
175 if kubeContext != "" {
176 args = append(args, "--kube-context", kubeContext)
177 }
178 cmd := exec.Command(os.Getenv("HELM_BIN"), args...)
179 out, err := outputWithRichError(cmd)
180 if err != nil {
181 return "", err
182 }
183 return string(out), nil
184}
185
186func (d *diffCmd) template(isUpgrade bool) ([]byte, error) {
187 flags := []string{}

Callers 1

differentiateHelm3Method · 0.85

Calls 1

outputWithRichErrorFunction · 0.85

Tested by

no test coverage detected