mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 08:20:59 +00:00
Address comments: add unit tests, defaulting and update comment
This commit is contained in:
@@ -347,7 +347,10 @@ func (a *applicationImpl) Vars() ([]types.Var, error) {
|
||||
}
|
||||
vars = append(vars, subAppVars...)
|
||||
}
|
||||
vars = append(vars, a.kustomization.Vars...)
|
||||
for _, v := range a.kustomization.Vars {
|
||||
v.Defaulting()
|
||||
vars = append(vars, v)
|
||||
}
|
||||
if len(errs.Get()) > 0 {
|
||||
return nil, errs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user