{{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: # Account name is hardcoded in nfs-operator for nfs-server statefulset name: rook-nfs-server labels: {{- include "rook-nfs-server.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}