Add --skip-crds to helmfile sync and helmfile apply (#1771)

Resolves #1770
This commit is contained in:
Yusuke Kuoka
2021-04-11 10:38:23 +09:00
committed by GitHub
parent 589b26aaad
commit a111e89b27
5 changed files with 31 additions and 0 deletions
+5
View File
@@ -513,6 +513,10 @@ func (st *HelmState) prepareSyncReleases(helm helmexec.Interface, additionalValu
}
}
if opts.SkipCRDs {
flags = append(flags, "--skip-crds")
}
if opts.Wait {
flags = append(flags, "--wait")
}
@@ -595,6 +599,7 @@ func (st *HelmState) DetectReleasesToBeDeleted(helm helmexec.Interface, releases
type SyncOpts struct {
Set []string
SkipCleanup bool
SkipCRDs bool
Wait bool
WaitForJobs bool
}