Stabilize helmfile-diff output (#1619)

`helmfile-diff` sorts multiple and concurrent helm-diff outputs and stabilizes writes to stdout.

It's required to use the stdout from helmfile-diff to detect if there was another change(s) between 2 points in time.

For example, terraform-provider-helmfile runs a helmfile-diff on `terraform plan` and another on `terraform apply`. `terraform`, by design, fails when helmfile-diff outputs were not equivalent. Stabilized helmfile-diff output rescues that.
This commit is contained in:
Yusuke Kuoka
2020-12-11 09:51:26 +09:00
committed by GitHub
parent 28e7ebb4a4
commit 1c7b872476
3 changed files with 54 additions and 19 deletions
+2
View File
@@ -1,6 +1,7 @@
package helmexec
import (
"io"
"os"
"path/filepath"
)
@@ -10,6 +11,7 @@ type HelmContext struct {
TillerNamespace string
HistoryMax int
WorkerIndex int
Writer io.Writer
}
func (context *HelmContext) GetTillerlessArgs(helm *execer) []string {