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

Function getHooks

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

Source from the content-addressed store, hash-verified

144}
145
146func getHooks(release, namespace, kubeContext string) ([]byte, error) {
147 args := []string{"get", "hooks", release}
148 if namespace != "" {
149 args = append(args, "--namespace", namespace)
150 }
151 if kubeContext != "" {
152 args = append(args, "--kube-context", kubeContext)
153 }
154 cmd := exec.Command(os.Getenv("HELM_BIN"), args...)
155 return outputWithRichError(cmd)
156}
157
158func getRevision(release string, revision int, namespace, kubeContext string) ([]byte, error) {
159 args := []string{"get", "manifest", release, "--revision", strconv.Itoa(revision)}

Callers 1

runHelm3Method · 0.85

Calls 1

outputWithRichErrorFunction · 0.85

Tested by

no test coverage detected