mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-14 05:12:51 +08:00
add ability to pass --purge to delete
This commit is contained in:
@@ -45,6 +45,7 @@ type (
|
||||
Timeout string `json:"timeout"`
|
||||
Force bool `json:"force"`
|
||||
HelmRepos []string `json:"helm_repos"`
|
||||
Purge bool `json:"purge"`
|
||||
}
|
||||
// Plugin default
|
||||
Plugin struct {
|
||||
@@ -68,6 +69,9 @@ func setDeleteCommand(p *Plugin) {
|
||||
if p.Config.DryRun {
|
||||
delete = append(delete, "--dry-run")
|
||||
}
|
||||
if p.Config.Purge {
|
||||
delete = append(delete, "--purge")
|
||||
}
|
||||
|
||||
p.command = delete
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user