MCPcopy Create free account
hub / github.com/databus23/helm-diff / getRelease

Function getRelease

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

Source from the content-addressed store, hash-verified

132}
133
134func getRelease(release, namespace, kubeContext string) ([]byte, error) {
135 args := []string{"get", "manifest", release}
136 if namespace != "" {
137 args = append(args, "--namespace", namespace)
138 }
139 if kubeContext != "" {
140 args = append(args, "--kube-context", kubeContext)
141 }
142 cmd := exec.Command(os.Getenv("HELM_BIN"), args...)
143 return outputWithRichError(cmd)
144}
145
146func getHooks(release, namespace, kubeContext string) ([]byte, error) {
147 args := []string{"get", "hooks", release}

Callers 4

differentiateHelm3Method · 0.85
differentiateHelm3Method · 0.85
runHelm3Method · 0.85
backcastHelm3Method · 0.85

Calls 1

outputWithRichErrorFunction · 0.85

Tested by

no test coverage detected