support reuse_values

This commit is contained in:
Kevin Tsai
2017-06-13 19:23:22 +09:00
parent 40b9fd5306
commit fb9137c883
3 changed files with 14 additions and 3 deletions
+4
View File
@@ -37,6 +37,7 @@ type (
RecreatePods bool `json:"recreate_pods"`
Upgrade bool `json:"upgrade"`
ClientOnly bool `json:"client_only"`
ReuseValues bool `json:"reuse_values"`
}
// Plugin default
Plugin struct {
@@ -94,6 +95,9 @@ func setPushEventCommand(p *Plugin) {
if p.Config.RecreatePods {
upgrade = append(upgrade, "--recreate-pods")
}
if p.Config.ReuseValues {
upgrade = append(upgrade, "--reuse-values")
}
p.Config.HelmCommand = upgrade
}