mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-17 17:44:41 +02:00
Fix build error after helmfile build --embed-values addition
This is a follow-up for #1436
This commit is contained in:
+2
-2
@@ -2577,7 +2577,7 @@ func (st *HelmState) ToYaml() (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (st *HelmState) LoadYAMLForEmbedding(entries []interface{}, missingFileHandler *string, pathPrefix string) ([]interface{}, error) {
|
||||
func (st *HelmState) LoadYAMLForEmbedding(release *ReleaseSpec, entries []interface{}, missingFileHandler *string, pathPrefix string) ([]interface{}, error) {
|
||||
var result []interface{}
|
||||
|
||||
for _, v := range entries {
|
||||
@@ -2598,7 +2598,7 @@ func (st *HelmState) LoadYAMLForEmbedding(entries []interface{}, missingFileHand
|
||||
}
|
||||
yamlOrTemplatePath := paths[0]
|
||||
|
||||
yamlBytes, err := st.RenderValuesFileToBytes(yamlOrTemplatePath)
|
||||
yamlBytes, err := st.RenderReleaseValuesFileToBytes(release, yamlOrTemplatePath)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to render values files \"%s\": %v", t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user