mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Using double-sided whitespace trimming (something like `{{- end -}}` can be
dangerous anywhere other than at the very beginning and the very end of a
template file, because it trims carriage returns. This makes it possible to
inadvertently create a manifest like the following:
```yaml
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRoleBinding
metadata:
labels:
app: "datadog"
chart: "datadog-1.31.8"
release: "datadog"
heritage: "Tiller"
name: datadog
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: datadog
subjects:
- kind: ServiceAccount
name: datadog
namespace: datadog---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: "datadog"
chart: "datadog-1.31.8"
heritage: "Tiller"
release: "datadog"
name: datadog
---
```
Signed-off-by: Steve Huff <shuff@vecna.org>