Prevent helm from adding meaningless blank lines to kubernetes objects YAML (#1065)
This commit is contained in:
committed by
Ta-Ching Chen
parent
3c4fdb0659
commit
2efa255eb4
@@ -1,4 +1,4 @@
|
||||
{{ if .Values.analytics }}
|
||||
{{- if .Values.analytics }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
@@ -32,4 +32,4 @@ spec:
|
||||
- name: post-install-job
|
||||
image: "fission/alpinecurl"
|
||||
command: ["sh", "-c", "/usr/bin/curl -m 5 -H \"Content-Type: application/json\" -X POST -d '{\"type\": \"helm-post-install\", \"chartName\": \"{{ .Chart.Name }}\", \"chartVersion\": \"{{ .Chart.Version }}\"}' https://g.fission.sh/analytics || true"]
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user