Relax the forbid-env-with-releases policy for plain helmfile.yaml on v1 (#684)

This commit is contained in:
Yusuke Kuoka
2023-02-09 07:02:50 +08:00
committed by GitHub
parent e930deffbc
commit 8f2d97a1b3
5 changed files with 42 additions and 12 deletions
+2
View File
@@ -96,6 +96,8 @@ func (c *StateCreator) Parse(content []byte, baseDir, file string) (*HelmState,
var intermediate HelmState
intermediate.FilePath = file
err := decode(&intermediate)
if err == io.EOF {
break
+1 -1
View File
@@ -104,7 +104,7 @@ func (hs *HelmState) UnmarshalYAML(unmarshal func(interface{}) error) error {
return err
}
isStrict, err := policy.Checker(helmStateInfo)
isStrict, err := policy.Checker(hs.FilePath, helmStateInfo)
if err != nil {
if isStrict {
return err