Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rbd: add generic ephemeral volume validation
This commit adds the validation of csi RBD driver to work with ephemeral volume support. With ephemeral volume support a user can specify ephemeral volumes in its pod spec and tie the lifecycle of the PVC with the POD. An example POD spec looks like this: kind: Pod apiVersion: v1 metadata: name: my-app spec: containers: - name: csi-rbd-demo-pod image: busybox volumeMounts: - mountPath: "/scratch" name: mypvc command: [ "sleep", "1000000" ] volumes: - name: mypvc ephemeral: volumeClaimTemplate: spec: accessModes: [ "ReadWriteOnce" ] storageClassName: "csi-rbd-sc" resources: requests: storage: 1Gi Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
- Loading branch information