New ๐ŸŒŠ wave for @helm

Commit 81a3d874

81a3d874cb11Merged

Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

Plan manifests

Details

Commit
81a3d874cb11
Parent
a4caf1075fac

pkg/yml/plan.gomodifiedView file

@@ -33,7 +33,7 @@
3333
3434 func (o *SavePlanOptions) PlanReleases() *SavePlanOptions {
3535 o.planReleases = true
36- return o
36+ return o.PlanValues()
3737 }
3838
3939 func (o *SavePlanOptions) PlanRepos() *SavePlanOptions {
@@ -55,11 +55,7 @@
5555 }
5656
5757 func (c *Config) Plan(o *SavePlanOptions) error {
58- if o.planReleases {
59- c.PlanReleases(o.tags)
60- } else {
61- c.Releases = release.Plan(o.tags, c.Releases)
62- }
58+ c.PlanReleases(o.tags)
6359
6460 if o.planValues {
6561 if err := c.PlanReleasesValues(o.dir); err != nil {
@@ -67,6 +63,12 @@
6763 }
6864 }
6965
66+ if o.planReleases {
67+ if err := c.PlanManifests(o.dir); err != nil {
68+ return err
69+ }
70+ }
71+
7072 if o.planRepos {
7173 c.PlanRepos()
7274 }
@@ -95,3 +97,11 @@
9597 func (c *Config) PlanReleasesValues(dir string) error {
9698 return release.PlanValues(c.Releases, dir)
9799 }
100+
101+func (c *Config) PlanManifests(dir string) error {
102+ for i, _ := range c.Releases {
103+ c.Releases[i].Options.DryRun = true
104+ }
105+
106+ return c.SyncReleases(dir+".manifest/", false)
107+}