fix(template): properly indent all spec fields using toYaml and nindent 4 in routingpeers.yaml

This commit is contained in:
athul
2025-08-08 13:26:04 +03:00
committed by M. Essam
parent 877c894248
commit c38b37202b
@@ -19,19 +19,24 @@ spec:
replicas: {{ $spec.replicas }} replicas: {{ $spec.replicas }}
{{- end }} {{- end }}
{{- if $spec.resources }} {{- if $spec.resources }}
resources: {{ $spec.resources }} resources:
{{- toYaml $spec.resources | nindent 4 }}
{{- end }} {{- end }}
{{- if $spec.labels }} {{- if $spec.labels }}
labels: {{ $spec.labels }} labels:
{{- toYaml $spec.labels | nindent 4 }}
{{- end }} {{- end }}
{{- if $spec.annotations }} {{- if $spec.annotations }}
annotations: {{ $spec.annotations }} annotations:
{{- toYaml $spec.annotations | nindent 4 }}
{{- end }} {{- end }}
{{- if $spec.nodeSelector }} {{- if $spec.nodeSelector }}
nodeSelector: {{ $spec.nodeSelector }} nodeSelector:
{{- toYaml $spec.nodeSelector | nindent 4 }}
{{- end }} {{- end }}
{{- if $spec.tolerations }} {{- if $spec.tolerations }}
tolerations: {{ $spec.tolerations }} tolerations:
{{- toYaml $spec.tolerations | nindent 4 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
--- ---
@@ -53,19 +58,24 @@ spec:
replicas: {{ .replicas }} replicas: {{ .replicas }}
{{- end }} {{- end }}
{{- if .resources }} {{- if .resources }}
resources: {{ .resources }} resources:
{{- toYaml .resources | nindent 4 }}
{{- end }} {{- end }}
{{- if .labels }} {{- if .labels }}
labels: {{ .labels }} labels:
{{- toYaml .labels | nindent 4 }}
{{- end }} {{- end }}
{{- if .annotations }} {{- if .annotations }}
annotations: {{ .annotations }} annotations:
{{- toYaml .annotations | nindent 4 }}
{{- end }} {{- end }}
{{- if .nodeSelector }} {{- if .nodeSelector }}
nodeSelector: {{ .nodeSelector }} nodeSelector:
{{- toYaml .nodeSelector | nindent 4 }}
{{- end }} {{- end }}
{{- if .tolerations }} {{- if .tolerations }}
tolerations: {{ .tolerations }} tolerations:
{{- toYaml .tolerations | nindent 4 }}
{{- end }} {{- end }}
{{- else }} {{- else }}
spec: {} spec: {}