diff --git a/deploy/chart/local-path-provisioner/templates/serviceaccount.yaml b/deploy/chart/local-path-provisioner/templates/serviceaccount.yaml
index aed111e6391ba8bfb991f3ef1cc3db03a91d6066..9218b84592d294a94773283ee92f4080b92b4b99 100644
--- a/deploy/chart/local-path-provisioner/templates/serviceaccount.yaml
+++ b/deploy/chart/local-path-provisioner/templates/serviceaccount.yaml
@@ -5,8 +5,8 @@ metadata:
   name: {{ template "local-path-provisioner.serviceAccountName" . }}
   labels:
 {{ include "local-path-provisioner.labels" . | indent 4 }}
-{{- with .Values.imagePullSecrets }}
 imagePullSecrets:
+{{- with .Values.imagePullSecrets }}
   {{- toYaml . | nindent 2 }}
 {{- end }}
 {{- if .Values.defaultSettings.registrySecret }}