Commit e3775267 authored by bryanl's avatar bryanl
Browse files

bug: env used incorrent params for rendering


Signed-off-by: default avatarbryanl <bryanliles@gmail.com>
parent fcd4800f
......@@ -322,7 +322,7 @@ func (te *cmdObjExpander) Expand() ([]*unstructured.Unstructured, error) {
}
envPath, vendorPath := manager.LibPaths()
libPath, mainPath, _, err := manager.EnvPaths(te.config.env)
libPath, mainPath, paramsPath, err := manager.EnvPaths(te.config.env)
if err != nil {
return nil, err
}
......@@ -350,12 +350,11 @@ func (te *cmdObjExpander) Expand() ([]*unstructured.Unstructured, error) {
baseCodes := expander.ExtCodes
params := importParams(paramsPath)
slUnstructured := make([]*unstructured.Unstructured, 0)
for ns, componentPaths := range namespacedComponentPaths {
paramsPath := ns.ParamsPath()
params := importParams(string(paramsPath))
baseObj, err := constructBaseObj(componentPaths, te.config.components)
if err != nil {
return nil, errors.Wrap(err, "construct base object")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment