chore: join with space (#963)

Signed-off-by: WrenIX <dev.github@wrenix.eu>
This commit is contained in:
WrenIX
2023-08-08 13:25:54 +08:00
committed by GitHub
parent 48e48aa568
commit ab50997798
10 changed files with 210 additions and 210 deletions
+2 -2
View File
@@ -130,7 +130,7 @@ func (helm *Helm) DiffRelease(context helmexec.HelmContext, name, chart string,
return nil
}
key := DiffKey{Name: name, Chart: chart, Flags: strings.Join(flags, "")}
key := DiffKey{Name: name, Chart: chart, Flags: strings.Join(flags, " ")}
err, ok := helm.Diffs[key]
if !ok && helm.FailOnUnexpectedDiff {
return fmt.Errorf("unexpected diff with key: %v", key)
@@ -152,7 +152,7 @@ func (helm *Helm) DeleteRelease(context helmexec.HelmContext, name string, flags
return nil
}
func (helm *Helm) List(context helmexec.HelmContext, filter string, flags ...string) (string, error) {
key := ListKey{Filter: filter, Flags: strings.Join(flags, "")}
key := ListKey{Filter: filter, Flags: strings.Join(flags, " ")}
if helm.Lists == nil {
return "dummy non-empty helm-list output", nil