yashbhutwala / kubectl-df-pv

kubectl plugin - giving admins df (disk free) like utility for persistent volumes
Apache License 2.0
416 stars 32 forks source link

Print info message when no volumes are found #1

Closed corneliusweig closed 4 years ago

corneliusweig commented 5 years ago

Currently, when no volumes are found the command does not display anything. So it's unclear if the command succeeded or not.

It would be better, if the command would print some informative message, similar to what kubectl get pods does:

No resources found in default namespace.
yashbhutwala commented 4 years ago

Thanks for taking the time to create the issue! 💯

df-pv now prints the following log message: INFO[2020-07-12T12:55:47-04:00] Either no volumes found in namespace/s: 'all' or the storage provisioner used for the volumes does not publish metrics to kubelet