(release, namespace, kubeContext string)
| 144 | } |
| 145 | |
| 146 | func 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 | |
| 158 | func getRevision(release string, revision int, namespace, kubeContext string) ([]byte, error) { |
| 159 | args := []string{"get", "manifest", release, "--revision", strconv.Itoa(revision)} |
no test coverage detected