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

Function getRevision

cmd/helm.go:158–168  ·  view source on GitHub ↗
(release string, revision int, namespace, kubeContext string)

Source from the content-addressed store, hash-verified

156}
157
158func getRevision(release string, revision int, namespace, kubeContext string) ([]byte, error) {
159 args := []string{"get", "manifest", release, "--revision", strconv.Itoa(revision)}
160 if namespace != "" {
161 args = append(args, "--namespace", namespace)
162 }
163 if kubeContext != "" {
164 args = append(args, "--kube-context", kubeContext)
165 }
166 cmd := exec.Command(os.Getenv("HELM_BIN"), args...)
167 return outputWithRichError(cmd)
168}
169
170func getChart(release, namespace, kubeContext string) (string, error) {
171 args := []string{"get", "all", release, "--template", "{{.Release.Chart.Name}}"}

Callers 2

differentiateHelm3Method · 0.85
backcastHelm3Method · 0.85

Calls 1

outputWithRichErrorFunction · 0.85

Tested by

no test coverage detected