(context HelmContext, name, chart string, flags ...string)
| 197 | } |
| 198 | |
| 199 | func (helm *execer) SyncRelease(context HelmContext, name, chart string, flags ...string) error { |
| 200 | helm.logger.Infof("Upgrading release=%v, chart=%v", name, chart) |
| 201 | preArgs := context.GetTillerlessArgs(helm) |
| 202 | env := context.getTillerlessEnv() |
| 203 | |
| 204 | if helm.IsHelm3() { |
| 205 | flags = append(flags, "--history-max", strconv.Itoa(context.HistoryMax)) |
| 206 | } else { |
| 207 | env["HELM_TILLER_HISTORY_MAX"] = strconv.Itoa(context.HistoryMax) |
| 208 | } |
| 209 | |
| 210 | out, err := helm.exec(append(append(preArgs, "upgrade", "--install", "--reset-values", name, chart), flags...), env) |
| 211 | helm.write(nil, out) |
| 212 | return err |
| 213 | } |
| 214 | |
| 215 | func (helm *execer) ReleaseStatus(context HelmContext, name string, flags ...string) error { |
| 216 | helm.logger.Infof("Getting status %v", name) |
nothing calls this directly
no test coverage detected