container-storage-interface / spec

Container Storage Interface (CSI) Specification.
Apache License 2.0
1.34k stars 373 forks source link

CSI changes for volume health #410

Closed xing-yang closed 4 years ago

xing-yang commented 4 years ago

Volume Health KEP is merged in Kubernetes. We need to have CSI changes to provide volume health check leveraging existing RPCs and adding new ones.

Two new controller capabilities are added. If a CSI driver supports GET_VOLUME capability, it MUST support calling GetVolume to provide general volume information in GetVolumeResponse. If a driver supports GET_VOLUME_HEALTH, it MUST provide additional health information in GetVolumeResponse.

A new node capability is added. If CSI driver supports the GET_VOLUME_STATS_HEALTH capability, it MUST provide health information in NodeGetVolumeStats.

For details of CSI spec changes, see the following: https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/20190530-pv-health-monitor.md#csi-changes