Brush all the lint off this code I wrote in a haze
This commit is contained in:
@@ -4,21 +4,24 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// Upgrade is a step in a helm Plan that calls `helm upgrade`.
|
||||
type Upgrade struct {
|
||||
Chart string
|
||||
Release string
|
||||
cmd cmd
|
||||
}
|
||||
|
||||
// Run launches the command.
|
||||
func (u *Upgrade) Run() error {
|
||||
return u.cmd.Run()
|
||||
}
|
||||
|
||||
// NewUpgrade creates a new Upgrade.
|
||||
func NewUpgrade(release, chart string) *Upgrade {
|
||||
u := Upgrade{
|
||||
Chart: chart,
|
||||
Release: release,
|
||||
cmd: Command(HELM_BIN, "upgrade", "--install", release, chart),
|
||||
cmd: command(helmBin, "upgrade", "--install", release, chart),
|
||||
}
|
||||
|
||||
u.cmd.Stdout(os.Stdout)
|
||||
|
||||
Reference in New Issue
Block a user