我试图理解 helm 模板并发现如下语法:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
Run Code Online (Sandbox Code Playgroud)
所以我认为每件事都必须从以下开始{{-,但后来我发现其他语法没有该语法:
- name: {{ .Chart.Name }}
Run Code Online (Sandbox Code Playgroud)
So my question is what is the difference between those two syntaxs? What does the dash do? When is it needed?