Unverified Commit 2b4acaf2 authored by Bryan Liles's avatar Bryan Liles Committed by GitHub
Browse files

Merge pull request #349 from bryanl/bug-use-env-params

bug: env used incorrent params for rendering
parents 3b225dd0 e3775267
......@@ -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