Adding recreate_pods option

This commit is contained in:
Masatoshi Tsushima
2017-05-30 19:06:19 +09:00
parent 5e345c74d9
commit 7b5b91654f
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -33,6 +33,7 @@ type (
Prefix string `json:"prefix"`
TillerNs string `json:"tiller_ns"`
Wait bool `json:"wait"`
RecreatePods bool `json:"recreate_pods"`
}
// Plugin default
Plugin struct {
@@ -83,6 +84,9 @@ func setPushEventCommand(p *Plugin) {
if p.Config.Wait {
upgrade = append(upgrade, "--wait")
}
if p.Config.RecreatePods {
upgrade = append(upgrade, "--recreate-pods")
}
p.Config.HelmCommand = upgrade
}