vladikr / logsviewer

A troubleshooting service. Currently focused on OpenShift Virtualization.
Apache License 2.0
8 stars 6 forks source link

Detect available StorageClasses #20

Open jorti opened 1 year ago

jorti commented 1 year ago

The deploy script deployment/lvctl.sh creates the PVCs in the hard-coded ocs-storagecluster-ceph-rbd StorageClass by default.

If no StorageClass is specified in the command line, the script should ideally create the PVCs in the default storage class (the one with the annotation storageclass.kubernetes.io/is-default-class="true") or in any existing StorageClass if the default is not defined.

vladikr commented 1 year ago

Thanks. Yea... We'll need to find a way how to deal with this. Not all storage classes can provide a filesystem volume.

Could you for now run use the --storage_class option? (./deployment/lvctl.sh --create ----storage_class=[storage_class])

jorti commented 1 year ago

Could you for now run use the --storage_class option? (./deployment/lvctl.sh --create ----storage_class=[storage_class])

Manually specifying the storageclass works fine. Thanks.