(release string, revision int, namespace, kubeContext string)
| 156 | } |
| 157 | |
| 158 | func 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 | |
| 170 | func getChart(release, namespace, kubeContext string) (string, error) { |
| 171 | args := []string{"get", "all", release, "--template", "{{.Release.Chart.Name}}"} |
no test coverage detected