mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 08:46:25 +02:00
Relax the forbid-env-with-releases policy for plain helmfile.yaml on v1 (#684)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user