From 1e20ebae35d17c94e77051044fee79913c2719ff Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Wed, 9 Oct 2019 14:25:47 -0700 Subject: [PATCH] fix(pkg/kube): validate with OpenAPI on install Signed-off-by: Adam Reese --- pkg/action/hooks.go | 2 +- pkg/action/install.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/action/hooks.go b/pkg/action/hooks.go index a84cd2b51..d0498c9c6 100644 --- a/pkg/action/hooks.go +++ b/pkg/action/hooks.go @@ -44,7 +44,7 @@ func (cfg *Configuration) execHook(rl *release.Release, hook release.HookEvent, return err } - resources, err := cfg.KubeClient.Build(bytes.NewBufferString(h.Manifest), false) + resources, err := cfg.KubeClient.Build(bytes.NewBufferString(h.Manifest), true) if err != nil { return errors.Wrapf(err, "unable to build kubernetes object for %s hook %s", hook, h.Path) } diff --git a/pkg/action/install.go b/pkg/action/install.go index 1cf63e4cd..e1a55618d 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -225,7 +225,7 @@ func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release. // Mark this release as in-progress rel.SetStatus(release.StatusPendingInstall, "Initial install underway") - resources, err := i.cfg.KubeClient.Build(bytes.NewBufferString(rel.Manifest), false) + resources, err := i.cfg.KubeClient.Build(bytes.NewBufferString(rel.Manifest), true) if err != nil { return nil, errors.Wrap(err, "unable to build kubernetes objects from release manifest") }