From c38b37202b3f243876334b1bd7cc7d55d20109bd Mon Sep 17 00:00:00 2001 From: athul Date: Thu, 10 Jul 2025 18:48:53 +0530 Subject: [PATCH] fix(template): properly indent all spec fields using toYaml and nindent 4 in routingpeers.yaml --- .../templates/nbroutingpeers.yaml | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/helm/kubernetes-operator/templates/nbroutingpeers.yaml b/helm/kubernetes-operator/templates/nbroutingpeers.yaml index e8da3fb..7742b41 100644 --- a/helm/kubernetes-operator/templates/nbroutingpeers.yaml +++ b/helm/kubernetes-operator/templates/nbroutingpeers.yaml @@ -19,19 +19,24 @@ spec: replicas: {{ $spec.replicas }} {{- end }} {{- if $spec.resources }} - resources: {{ $spec.resources }} + resources: + {{- toYaml $spec.resources | nindent 4 }} {{- end }} {{- if $spec.labels }} - labels: {{ $spec.labels }} + labels: + {{- toYaml $spec.labels | nindent 4 }} {{- end }} {{- if $spec.annotations }} - annotations: {{ $spec.annotations }} + annotations: + {{- toYaml $spec.annotations | nindent 4 }} {{- end }} {{- if $spec.nodeSelector }} - nodeSelector: {{ $spec.nodeSelector }} + nodeSelector: + {{- toYaml $spec.nodeSelector | nindent 4 }} {{- end }} {{- if $spec.tolerations }} - tolerations: {{ $spec.tolerations }} + tolerations: + {{- toYaml $spec.tolerations | nindent 4 }} {{- end }} {{- end }} --- @@ -53,19 +58,24 @@ spec: replicas: {{ .replicas }} {{- end }} {{- if .resources }} - resources: {{ .resources }} + resources: + {{- toYaml .resources | nindent 4 }} {{- end }} {{- if .labels }} - labels: {{ .labels }} + labels: + {{- toYaml .labels | nindent 4 }} {{- end }} {{- if .annotations }} - annotations: {{ .annotations }} + annotations: + {{- toYaml .annotations | nindent 4 }} {{- end }} {{- if .nodeSelector }} - nodeSelector: {{ .nodeSelector }} + nodeSelector: + {{- toYaml .nodeSelector | nindent 4 }} {{- end }} {{- if .tolerations }} - tolerations: {{ .tolerations }} + tolerations: + {{- toYaml .tolerations | nindent 4 }} {{- end }} {{- else }} spec: {}