Restricting the list of storage classes that are available to an instance of Cloud Pak for Data
After you install IBM® Cloud Pak for Data, you can optionally restrict the list of storage classes that end users can see and select in the web client. By default, users can see all of the storage classes that are defined on the cluster. However, you might want to prevent users from selecting certain storage classes when creating new storage volumes or deploying service instances.
Before you begin
Required permissions: To complete this task, you must be an administrator of the project (namespace) where Cloud Pak for Data is installed.
Work with your cluster administrator to determine which storage classes to display in the web client. As part of this discussion, you might need to consider which services you plan to deploy on this instance of Cloud Pak for Data.
About this task
Log in to your Red Hat® OpenShift® cluster as a
oc login OpenShift_URL:Port
- Change to the project where Cloud Pak for Data
oc project Project_name
- Run the following command to edit the Cloud Pak for Data
oc edit configmap product-configmap
- Add an entry for the
ALLOWED_STORAGE_CLASSESparameter to the
datasection of the
product-configmapfile. For example:
data: ... ALLOWED_STORAGE_CLASSES: "storage-class-1, storage-class-2, storage-class-3" ...
Specify multiple storage classes as a comma separated list.
- Save your changes to the product-configmap file.
For example, if you are using
vi, hit esc and enter: