Browse Source

fix invalid YAML error when using extraVolumeMounts (#1311)

Mark Hahl 3 years ago
parent
commit
03da357171

+ 6 - 6
deploy/charts/external-secrets/templates/webhook-deployment.yaml

@@ -80,16 +80,16 @@ spec:
             {{- toYaml . | nindent 12 }}
             {{- toYaml . | nindent 12 }}
           {{- end }}
           {{- end }}
           volumeMounts:
           volumeMounts:
-          - name: certs
-            mountPath: {{ .Values.webhook.certDir }}
-            readOnly: true
+            - name: certs
+              mountPath: {{ .Values.webhook.certDir }}
+              readOnly: true
           {{- if .Values.webhook.extraVolumeMounts }}
           {{- if .Values.webhook.extraVolumeMounts }}
           {{- toYaml .Values.webhook.extraVolumeMounts | nindent 12 }}
           {{- toYaml .Values.webhook.extraVolumeMounts | nindent 12 }}
           {{- end }}
           {{- end }}
       volumes:
       volumes:
-      - name: certs
-        secret:
-          secretName: {{ include "external-secrets.fullname" . }}-webhook
+        - name: certs
+          secret:
+            secretName: {{ include "external-secrets.fullname" . }}-webhook
       {{- if .Values.webhook.extraVolumes }}
       {{- if .Values.webhook.extraVolumes }}
       {{- toYaml .Values.webhook.extraVolumes | nindent 8 }}
       {{- toYaml .Values.webhook.extraVolumes | nindent 8 }}
       {{- end }}
       {{- end }}