rancher-partner-charts/charts/weka/csi-wekafsplugin/2.2.0/templates/driver.yaml

17 lines
458 B
YAML
Raw Normal View History

{{ if semverCompare ">=1.18.0-beta.1" .Capabilities.KubeVersion.Version }}
2021-08-18 20:17:25 +00:00
apiVersion: storage.k8s.io/v1
{{ else }}
apiVersion: storage.k8s.io/v1beta1
{{ end }}
2021-08-18 20:17:25 +00:00
kind: CSIDriver
metadata:
name: {{ required "Provide CSI Driver Name" .Values.csiDriverName }}
spec:
attachRequired: true
podInfoOnMount: true
volumeLifecycleModes:
- Persistent
{{- if semverCompare ">=1.19.0" .Capabilities.KubeVersion.Version }}
fsGroupPolicy: File
{{- end }}