我正在通过头盔包中的values.yaml进行输入,并尝试在xml文件中使用该值。但这是失败的。请指出我做错了什么。 Values.yaml包含:
ere:
AdmServerPort: "9090"
在文件中,我将其用作:
<Argument Name="Port" Value="{{ .Values.ere.AdmServerPort | default "9090" }}"/>
动态编辑后,我正在使用configmap将其放置在pod中。请帮忙。预先感谢!
编辑: 我没有粘贴错误,因为它包含整个xml。我尝试了头盔升级,但由于渲染错误而失败。我也尝试更改自己修改过的行(仅是这些提到的行),因为它确实可以正常工作。但这没有帮助。
Error: UPGRADE FAILED: render error in "eric-em-ere/templates/deployment-ere.yaml": template: eric-em-ere/templates/deployment-ere.yaml:25:28: executing "eric-em-ere/templates/deployment-ere.yaml" at <include (print $.Tem...>: error calling include: template: eric-em-ere/templates/configmap.yaml:14:22: executing "eric-em-ere/templates/configmap.yaml" at <tpl (.Files.Get "fil...>: error calling tpl: Error during tpl function execution for "<PoolServer>...
整个错误都与xml模板有关,并以:
结尾: parse error in "eric-em-ere/templates/deployment-ere.yaml": template: eric-em-ere/templates/deployment-ere.yaml:36: bad character U+002D '-'