nindent instead of indent toYaml

Signed-off-by: smcavallo <smcavallo@hotmail.com>
This commit is contained in:
smcavallo 2021-02-01 10:29:09 -05:00
parent 77b369d536
commit d196d864f4
3 changed files with 30 additions and 42 deletions

View file

@ -50,22 +50,18 @@ spec:
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 3
{{- with .Values.securityContext }} {{- with .Values.securityContext }}
securityContext: securityContext: {{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.eventbusController.nodeSelector }} {{- if .Values.eventbusController.nodeSelector }}
nodeSelector: nodeSelector: {{ toYaml .Values.eventbusController.nodeSelector | nindent 8 }}
{{ toYaml .Values.eventbusController.nodeSelector | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.eventbusController.tolerations }} {{- if .Values.eventbusController.tolerations }}
tolerations: tolerations: {{ toYaml .Values.eventbusController.tolerations | nindent 8 }}
{{ toYaml .Values.eventbusController.tolerations | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.eventbusController.affinity }} {{- if .Values.eventbusController.affinity }}
affinity: affinity: {{ toYaml .Values.eventbusController.affinity | nindent 8 }}
{{ toYaml .Values.eventbusController.affinity | indent 8 }}
{{- end }} {{- end }}

View file

@ -48,22 +48,18 @@ spec:
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 3
{{- with .Values.securityContext }} {{- with .Values.securityContext }}
securityContext: securityContext: {{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.eventsourceController.nodeSelector }} {{- if .Values.eventsourceController.nodeSelector }}
nodeSelector: nodeSelector: {{ toYaml .Values.eventsourceController.nodeSelector | nindent 8 }}
{{ toYaml .Values.eventsourceController.nodeSelector | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.eventsourceController.tolerations }} {{- if .Values.eventsourceController.tolerations }}
tolerations: tolerations: {{ toYaml .Values.eventsourceController.tolerations | nindent 8 }}
{{ toYaml .Values.eventsourceController.tolerations | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.eventsourceController.affinity }} {{- if .Values.eventsourceController.affinity }}
affinity: affinity: {{ toYaml .Values.eventsourceController.affinity | nindent 8 }}
{{ toYaml .Values.eventsourceController.affinity | indent 8 }}
{{- end }} {{- end }}

View file

@ -48,22 +48,18 @@ spec:
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 3
{{- with .Values.securityContext }} {{- with .Values.securityContext }}
securityContext: securityContext: {{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.sensorController.nodeSelector }} {{- if .Values.sensorController.nodeSelector }}
nodeSelector: nodeSelector: {{ toYaml .Values.sensorController.nodeSelector | nindent 8 }}
{{ toYaml .Values.sensorController.nodeSelector | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.sensorController.tolerations }} {{- if .Values.sensorController.tolerations }}
tolerations: tolerations: {{ toYaml .Values.sensorController.tolerations | nindent 8 }}
{{ toYaml .Values.sensorController.tolerations | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.sensorController.affinity }} {{- if .Values.sensorController.affinity }}
affinity: affinity: {{ toYaml .Values.sensorController.affinity | nindent 8 }}
{{ toYaml .Values.sensorController.affinity | indent 8 }}
{{- end }} {{- end }}