Commit 75c63229
75c63229f284Merged
zhiliaev <[email protected]> ยท 4 years ago ยท 3 files ยท ~3 modified
Description
fix: ProhibitDst
Details
- Commit
- 75c63229f284
- Parent
- 5967224efd39
pkg/plan/validate.gomodifiedView file
@@ -3,6 +3,7 @@
33
import (44
"errors"55
"fmt"6+
"github.com/helmwave/helmwave/pkg/release"67
"net/url"78
"os"89
"regexp"@@ -41,10 +42,9 @@
4142
// Also, dst needs to unmarshal for import from plan.4243
func (p *Plan) ValidateValuesBuild() error {4344
for _, rel := range p.body.Releases {44-
for i := range rel.Values() {45-
if rel.Values()[i].Dst != "" {46-
return fmt.Errorf("dst %q not allowed here, this field reserved", rel.Values()[i].Dst)47-
}45+
err := release.ProhibitDst(rel.Values())46+
if err != nil {47+
return err4848
}4949
}5050
pkg/release/values.gomodifiedView file
Loading diffโฆ
pkg/release/values_test.gomodifiedView file
Loading diffโฆ