1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/persistent-storage-csi-sc-managing-cli.adoc
Prithviraj Patil 70363c940f $ sing is missing from the command
$ sing is missing from the documentation.
Here is the documentation link: https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html/storage/using-container-storage-interface-csi#persistent-storage-csi-sc-managing-cli_persistent-storage-csi-sc-manage
Here is the current documentation look:

To manage the storage class using the CLI, run the following command:
oc patch clustercsidriver $DRIVERNAME --type=merge -p "{\"spec\":{\"storageClassState\":\"${STATE}\"}}"
$ sign is missing in the above command.
It will not cause any issue.
But as per standard procedure $ sign should be present at the start of command.
Here is the updated look of the documentation.

To manage the storage class using the CLI, run the following command:
$ oc patch clustercsidriver $DRIVERNAME --type=merge -p "{\"spec\":{\"storageClassState\":\"${STATE}\"}}"
2025-07-09 14:40:46 +00:00

24 lines
749 B
Plaintext

// Module included in the following assemblies:
//
// * storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc
//
:_mod-docs-content-type: PROCEDURE
[id="persistent-storage-csi-sc-managing-cli_{context}"]
= Managing the default storage class using the CLI
.Prerequisites
* Access to the cluster with cluster-admin privileges.
.Procedure
To manage the storage class using the CLI, run the following command:
[source,terminal]
----
$ oc patch clustercsidriver $DRIVERNAME --type=merge -p "{\"spec\":{\"storageClassState\":\"${STATE}\"}}" <1>
----
<1> Where `${STATE}` is "Removed" or "Managed" or "Unmanaged".
+
Where `$DRIVERNAME` is the provisioner name. You can find the provisioner name by running the command `oc get sc`.