diff --git a/deploy/kubernetes_v1.22/helm/templates/_params.tpl b/deploy/kubernetes_v1.22/helm/templates/_params.tpl index 78918cb..e82fbd1 100644 --- a/deploy/kubernetes_v1.22/helm/templates/_params.tpl +++ b/deploy/kubernetes_v1.22/helm/templates/_params.tpl @@ -52,10 +52,10 @@ Define the cmd envs for the bootstrap init container. */}} {{- define "configmap-sidecar.bootstrap_envs" -}} - name: METADATA - value: "{{ "{{" }} index .ObjectMeta.Annotations `sidecar.polarismesh.cn/envoyMetadata` {{ "}}" }}" + value: {{ "{{" }} index .ObjectMeta.Annotations `sidecar.polarismesh.cn/envoyMetadata` {{ "}}" }} {{ "{{" }}if ne ( index .ObjectMeta.Annotations `polarismesh.cn/tls-mode`) "none"{{ "}}" }} - name: TLS_MODE - value: "{{ "{{" }}index .ObjectMeta.Annotations `polarismesh.cn/tls-mode`{{ "}}" }}" + value: {{ "{{" }}index .ObjectMeta.Annotations `polarismesh.cn/tls-mode`{{ "}}" }} {{ "{{" }}end{{ "}}" }} - name: NAMESPACE valueFrom: @@ -110,4 +110,4 @@ Define the container resources for the envoy container. {{ "{{" }} toYaml .Values.global.proxy.resources | indent 6 {{ "}}" }} {{ "{{" }}- end {{ "}}" }} {{ "{{" }}- end {{ "}}" }} -{{- end -}} \ No newline at end of file +{{- end -}}