Istio的“ sidecar-injector-configmap.yaml”文件使用什么头盔语法?

时间:2018-08-15 12:59:04

标签: kubernetes kubernetes-helm istio

具体来说,以下是相关代码行的永久链接:https://github.com/istio/istio/blob/e3a376610c2f28aef40296aac722c587629123c1/install/kubernetes/helm/istio/templates/sidecar-injector-configmap.yaml#L84

  

{{“ [[.ProxyConfig.ZipkinAddress]]”}}

[[]]对我来说似乎陌生,在掌舵图表开发人员指南文档here中,它没有显示有关[[]]语法。

此外,当我尝试渲染istio安装(使用helm template命令)时,{{ "[[ .ProxyConfig.ZipkinAddress ]]" }}部分仅渲染为[[ .ProxyConfig.ZipkinAddress ]]。因此,我猜想[[]]不是头盔模板语法的一部分。我猜可能是istio内部的相关语法,我不知道它到底是什么。

有什么主意吗?

1 个答案:

答案 0 :(得分:1)

在Istio的Google网上论坛here上发布了相同的问题后,我得到了答案。在不辜负Google组中回答我的作者的情况下,答案是肯定的,它是模板的模板。在https://istio.io/docs/setup/kubernetes/sidecar-injection/#template

中描述了Sidecar注入使用的模板语法。
相关问题