Prevent helm from adding meaningless blank lines to kubernetes objects YAML (#1065)

This commit is contained in:
Chia-Chun Tai
2019-01-21 19:54:40 +08:00
committed by Ta-Ching Chen
parent 3c4fdb0659
commit 2efa255eb4
11 changed files with 34 additions and 35 deletions
+8 -8
View File
@@ -11,9 +11,9 @@ spec:
ports:
- port: 80
targetPort: 8888
{{ if eq .Values.routerServiceType "NodePort" }}
{{- if eq .Values.routerServiceType "NodePort" }}
nodePort: {{ .Values.routerPort }}
{{ end }}
{{- end }}
selector:
svc: router
@@ -31,14 +31,14 @@ spec:
ports:
- port: 80
targetPort: 8888
{{ if eq .Values.serviceType "NodePort" }}
{{- if eq .Values.serviceType "NodePort" }}
nodePort: {{ .Values.controllerPort }}
{{ end }}
{{- end }}
selector:
svc: controller
---
{{- if .Values.nats.enabled }}
---
apiVersion: v1
kind: Service
metadata:
@@ -51,9 +51,9 @@ spec:
ports:
- port: 4222
targetPort: 4222
{{ if eq .Values.serviceType "NodePort" }}
{{- if eq .Values.serviceType "NodePort" }}
nodePort: {{ .Values.natsStreamingPort }}
{{ end }}
{{- end }}
selector:
svc: nats-streaming
{{- end }}
@@ -72,4 +72,4 @@ spec:
- port: 80
targetPort: 8000
selector:
svc: storagesvc
svc: storagesvc