Table of contents

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

You can restrict the list of storage classes by creating a list of allowed storage classes in the Cloud Pak for Data product-configmap file.

Procedure

  1. Log in to your Red Hat® OpenShift® cluster as a project administrator:
    oc login OpenShift_URL:Port
  2. Change to the project where Cloud Pak for Data is installed:
    oc project Project_name
  3. Run the following command to edit the Cloud Pak for Data product-configmap:
    oc edit configmap product-configmap
  4. Add an entry for the ALLOWED_STORAGE_CLASSES parameter to the data section of the product-configmap file. For example:
    data:
      ...
      ALLOWED_STORAGE_CLASSES: "storage-class-1, storage-class-2, storage-class-3"
      ...

    Specify multiple storage classes as a comma separated list.

  5. Save your changes to the product-configmap file.

    For example, if you are using vi, hit esc and enter:

    :wq