mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 02:26:06 +02:00
Add --skip-tests to helmfile template command (#2057)
* Add skip-tests to helmfile template command * Fix formatting
This commit is contained in:
@@ -1307,6 +1307,7 @@ type TemplateOpts struct {
|
||||
SkipCleanup bool
|
||||
OutputDirTemplate string
|
||||
IncludeCRDs bool
|
||||
SkipTests bool
|
||||
}
|
||||
|
||||
type TemplateOpt interface{ Apply(*TemplateOpts) }
|
||||
@@ -1385,6 +1386,10 @@ func (st *HelmState) TemplateReleases(helm helmexec.Interface, outputDir string,
|
||||
flags = append(flags, "--include-crds")
|
||||
}
|
||||
|
||||
if opts.SkipTests {
|
||||
flags = append(flags, "--skip-tests")
|
||||
}
|
||||
|
||||
if len(errs) == 0 {
|
||||
if err := helm.TemplateRelease(release.Name, release.Chart, flags...); err != nil {
|
||||
errs = append(errs, err)
|
||||
|
||||
Reference in New Issue
Block a user