mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
24 lines
747 B
Plaintext
24 lines
747 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`.
|