/
default.go
37 lines (34 loc) · 1015 Bytes
/
default.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package diff
import (
"path/filepath"
"github.com/pluralsh/plural-cli/pkg/executor"
"github.com/pluralsh/plural-cli/pkg/utils/pathing"
)
func defaultDiff(path string) []*executor.Step {
return []*executor.Step{
{
Name: "terraform-init",
Wkdir: pathing.SanitizeFilepath(filepath.Join(path, "terraform")),
Target: pathing.SanitizeFilepath(filepath.Join(path, "terraform")),
Command: "terraform",
Args: []string{"init", "-upgrade"},
Sha: "",
},
{
Name: "terraform",
Wkdir: pathing.SanitizeFilepath(filepath.Join(path, "terraform")),
Target: pathing.SanitizeFilepath(filepath.Join(path, "terraform")),
Command: "plural",
Args: []string{"wkspace", "terraform-diff", path},
Sha: "",
},
{
Name: "helm",
Wkdir: pathing.SanitizeFilepath(filepath.Join(path, "helm")),
Target: pathing.SanitizeFilepath(filepath.Join(path, "helm")),
Command: "plural",
Args: []string{"wkspace", "helm-diff", path},
Sha: "",
},
}
}