mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-22 10:24:35 +02:00
@@ -126,7 +126,20 @@ func (ld *desiredStateLoader) loadFileWithOverrides(inheritedEnv, overrodeEnv *e
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return self, err
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
for i, h := range self.Helmfiles {
|
||||||
|
if h.Path == f {
|
||||||
|
return nil, fmt.Errorf("%s contains a recursion into the same sub-helmfile at helmfiles[%d]", f, i)
|
||||||
|
}
|
||||||
|
if h.Path == "." {
|
||||||
|
return nil, fmt.Errorf("%s contains a recursion into the the directory containing this helmfile at helmfiles[%d]", f, i)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return self, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *desiredStateLoader) underlying() *state.StateCreator {
|
func (a *desiredStateLoader) underlying() *state.StateCreator {
|
||||||
|
|||||||
Reference in New Issue
Block a user