fix(pkg/kube): validate with OpenAPI on install

Signed-off-by: Adam Reese <adam@reese.io>
pull/6622/head
Adam Reese 5 years ago
parent 442c3588e4
commit 1e20ebae35
No known key found for this signature in database
GPG Key ID: 06F35E60A7A18DD6

@ -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)
}

@ -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")
}

Loading…
Cancel
Save