kubesphere / console

KubeSphere Console is the web-based UI for KubeSphere clusters.
https://kubesphere.io
Other
584 stars 450 forks source link

Feat:Display clear data if KubeSphere can't get pv capacity usage for nfs sc #193

Open calvinyv opened 4 years ago

calvinyv commented 4 years ago

General remarks Describe the bug(描述下问题) A clear and concise description of what the bug is.

For UI issues please also add a screenshot that shows the issue.

Versions used(KubeSphere/Kubernetes的版本) KubeSphere: 2.1.1 The default storage class is nfs

To Reproduce(复现步骤) Steps to reproduce the behavior: As nfs limitation, there's no API provided from nfs to get mounted volume usage for each pv, but on KubeSphere console, it seems we always show it as '0%'. This is very confusing to end-users.

nfs-usage

Expected behavior(预期行为) on the volume list page, if those volumes belong to nfs sc, just tell end-users that 'capacity usage is not supported for nfs'.

calvinyv commented 4 years ago

/assign @leoendless @wnxn /kind bug

wnxn commented 4 years ago

In KS 2.1.x, mounted volume usage feature is only supported by QingCloud CSI. NFS storage plugin does not support this feature.

rayzhou2017 commented 4 years ago

The suggestion says to tell user such limitation in console instead of showing 0%.