apiVersion: {{ ternary "storage.k8s.io/v1" "storage.k8s.io/v1beta1" (semverCompare ">=1.18.0-0" .Capabilities.KubeVersion.Version) }}
kind: CSIDriver
metadata:
  name: ebs.csi.aws.com
  labels:
    {{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
spec:
  attachRequired: true
  podInfoOnMount: false
  {{- if not .Values.useOldCSIDriver }}
  fsGroupPolicy: File
  {{- end }}
