Skip to content

Commit 24660e1

Browse files
authored
Refactor v1.14.0 (#64)
1 parent f0d191d commit 24660e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bootstrap/config.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,11 @@ func parseYamlConfig(configFile string, bootConfig *BootConfig) (*SidecarConfig,
300300
}
301301

302302
func parseYamlContent(content []byte, sidecarConfig *SidecarConfig) error {
303-
decoder := yaml.NewDecoder(bytes.NewBuffer(content))
303+
data := []byte(os.ExpandEnv(string(content)))
304+
decoder := yaml.NewDecoder(bytes.NewBuffer(data))
304305
if err := decoder.Decode(sidecarConfig); nil != err {
305306
return errors.New(fmt.Sprintf("parse yaml %s error:%s", content, err.Error()))
306307
}
308+
log.Infof("[sidecar] config content : %s", content)
307309
return nil
308310
}

0 commit comments

Comments
 (0)