Put HelmCommand in Help, not run.Config [#15]

This commit is contained in:
Erin Call
2019-12-26 12:23:56 -08:00
parent b1899dee56
commit 167b53691b
5 changed files with 11 additions and 12 deletions

View File

@@ -29,7 +29,6 @@ func NewPlan(cfg Config) (*Plan, error) {
p := Plan{
cfg: cfg,
runCfg: run.Config{
HelmCommand: string(cfg.Command),
Debug: cfg.Debug,
Values: cfg.Values,
StringValues: cfg.StringValues,
@@ -132,7 +131,9 @@ var lint = func(cfg Config) []Step {
}
var help = func(cfg Config) []Step {
help := &run.Help{}
help := &run.Help{
HelmCommand: cfg.Command,
}
return []Step{help}
}

View File

@@ -43,7 +43,6 @@ func (suite *PlanTestSuite) TestNewPlan() {
}
runCfg := run.Config{
HelmCommand: "help",
Debug: false,
Values: "steadfastness,forthrightness",
StringValues: "tensile_strength,flexibility",