fix(pkg/action): Allow name re-use for helm template

Signed-off-by: Ian Howell <ian.howell0@gmail.com>
pull/6122/head
Ian Howell 6 years ago
parent e258418837
commit ef46a0c1e7

@ -262,7 +262,7 @@ func (i *Install) failRelease(rel *release.Release, err error) (*release.Release
//
// - empty
// - too long
// - already in use, and not deleted
// - already in use, and not deleted
// - used by a deleted release, and i.Replace is false
func (i *Install) availableName() error {
start := i.ReleaseName
@ -274,6 +274,10 @@ func (i *Install) availableName() error {
return errors.Errorf("release name %q exceeds max length of %d", start, releaseNameMaxLen)
}
if i.DryRun {
return nil
}
h, err := i.cfg.Releases.History(start)
if err != nil || len(h) < 1 {
return nil

Loading…
Cancel
Save