Merge pull request #6622 from adamreese/fix/validate

fix(pkg/kube): validate with OpenAPI on install
This commit is contained in:
Adam Reese 2019-10-09 14:32:02 -07:00 committed by GitHub
commit c3ac13a1f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

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