apiVersion: {{ ternary "storage.k8s.io/v1" "storage.k8s.io/v1beta1" (semverCompare ">=1.18.0-0" .Capabilities.KubeVersion.Version) }}
kind: CSIDriver
metadata:
  name: efs.csi.aws.com
  annotations:
    {{- if .Values.useHelmHooksForCSIDriver }}
    "helm.sh/hook": pre-install, pre-upgrade
    "helm.sh/hook-delete-policy": before-hook-creation
    {{- end }}
    "helm.sh/resource-policy": keep
spec:
  attachRequired: false
