Pass --ca-file to helm upgrade when applicable [#74]
This commit is contained in:
@@ -20,6 +20,7 @@ type Upgrade struct {
|
||||
Force bool
|
||||
Atomic bool
|
||||
CleanupOnFail bool
|
||||
CAFile string
|
||||
|
||||
cmd cmd
|
||||
}
|
||||
@@ -82,6 +83,9 @@ func (u *Upgrade) Prepare(cfg Config) error {
|
||||
for _, vFile := range u.ValuesFiles {
|
||||
args = append(args, "--values", vFile)
|
||||
}
|
||||
if u.CAFile != "" {
|
||||
args = append(args, "--ca-file", u.CAFile)
|
||||
}
|
||||
|
||||
args = append(args, u.Release, u.Chart)
|
||||
u.cmd = command(helmBin, args...)
|
||||
|
||||
Reference in New Issue
Block a user