Address comments: add unit tests, defaulting and update comment

This commit is contained in:
Jingfang Liu
2018-06-06 10:21:15 -07:00
parent 35344c163a
commit 1a28f3a391
7 changed files with 110 additions and 8 deletions

View File

@@ -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
}