mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-14 05:12:51 +08:00
Adding recreate_pods option
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user