Skip to content

Commit 185a10a

Browse files
authored
Merge pull request #55377 from lpettyjo/OSDOCS-3791
OSDOCS-3791:Disable default SC
2 parents b58d7ed + 7e30f8b commit 185a10a

15 files changed

+137
-9
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@ Topics:
15151515
File: persistent-storage-csi-snapshots
15161516
- Name: CSI volume cloning
15171517
File: persistent-storage-csi-cloning
1518+
- Name: Managing the default storage class
1519+
File: persistent-storage-csi-sc-manage
15181520
- Name: CSI automatic migration
15191521
File: persistent-storage-csi-migration
15201522
- Name: Detach CSI volumes after non-graceful node shutdown

_topic_maps/_topic_map_osd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ Topics:
200200
Topics:
201201
- Name: Configuring CSI volumes
202202
File: persistent-storage-csi
203+
- Name: Managing the default storage class
204+
File: persistent-storage-csi-sc-manage
203205
- Name: AWS Elastic Block Store CSI Driver Operator
204206
File: persistent-storage-csi-ebs
205207
- Name: AWS Elastic File Service CSI Driver Operator

_topic_maps/_topic_map_rosa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ Topics:
293293
Topics:
294294
- Name: Configuring CSI volumes
295295
File: persistent-storage-csi
296+
- Name: Managing the default storage class
297+
File: persistent-storage-csi-sc-manage
296298
- Name: AWS Elastic Block Store CSI Driver Operator
297299
File: persistent-storage-csi-ebs
298300
- Name: AWS Elastic File Service CSI Driver Operator
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc
4+
//
5+
6+
:_content-type: PROCEDURE
7+
[id="persistent-storage-csi-sc-managing-cli_{context}"]
8+
= Managing the default storage class using the CLI
9+
10+
.Prerequisites
11+
* Access to the cluster with cluster-admin privileges.
12+
13+
.Procedure
14+
15+
To manage the storage class using the CLI, run the following command:
16+
17+
[source, terminal]
18+
----
19+
oc patch clustercsidriver $DRIVERNAME --type=merge -p "{\"spec\":{\"storageClassState\":\"${STATE}\"}}" <1>
20+
----
21+
<1> Where `${STATE}` is "Removed" or "Managed" or "Unmanaged".
22+
+
23+
Where `$DRIVERNAME` is the provisioner name. You can find the provisioner name by running the command `oc get sc`.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc
4+
//
5+
6+
:_content-type: PROCEDURE
7+
[id="persistent-storage-csi-sc-managing_{context}"]
8+
= Managing the default storage class using the web console
9+
10+
.Prerequisites
11+
* Access to the {product-title} web console.
12+
13+
* Access to the cluster with cluster-admin privileges.
14+
15+
.Procedure
16+
17+
To manage the default storage class using the web console:
18+
19+
. Log in to the web console.
20+
21+
. Click *Administration* > *CustomResourceDefinitions*.
22+
23+
. On the *CustomResourceDefinitions* page, type `clustercsidriver` to find the `ClusterCSIDriver` object.
24+
25+
. Click *ClusterCSIDriver*, and then click the *Instances* tab.
26+
27+
. Click the name of the desired instance, and then click the *YAML* tab.
28+
29+
. Add the `spec.storageClassState` field with a value of `Managed`, `Unmanaged`, or `Removed`.
30+
+
31+
.Example
32+
[source, yaml]
33+
----
34+
...
35+
spec:
36+
driverConfig:
37+
driverType: ''
38+
logLevel: Normal
39+
managementState: Managed
40+
observedConfig: null
41+
operatorLogLevel: Normal
42+
storageClassState: Unmanaged <1>
43+
...
44+
----
45+
<1> `spec.storageClassState` field set to "Unmanaged"
46+
47+
. Click *Save*.

storage/container_storage_interface/persistent-storage-csi-alicloud-disk.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Familiarity with xref:../../storage/understanding-persistent-storage.adoc#unders
1414

1515
To create CSI-provisioned PVs that mount to AliCloud Disk storage assets, {product-title} installs the AliCloud Disk CSI Driver Operator and the AliCloud Disk CSI driver, by default, in the `openshift-cluster-csi-drivers` namespace.
1616

17-
* The _AliCloud Disk CSI Driver Operator_ provides a storage class (`alicloud-disk`) that you can use to create persistent volume claims (PVCs). The AliCloud Disk CSI Driver Operator supports dynamic volume provisioning by allowing storage volumes to be created on demand, eliminating the need for cluster administrators to pre-provision storage.
17+
* The _AliCloud Disk CSI Driver Operator_ provides a storage class (`alicloud-disk`) that you can use to create persistent volume claims (PVCs). The AliCloud Disk CSI Driver Operator supports dynamic volume provisioning by allowing storage volumes to be created on demand, eliminating the need for cluster administrators to pre-provision storage. You can disable this default storage class if desired (see xref:../../storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc#persistent-storage-csi-sc-manage[Managing the default storage class]).
1818

1919
* The _AliCloud Disk CSI driver_ enables you to create and mount AliCloud Disk PVs.
2020

storage/container_storage_interface/persistent-storage-csi-azure-file.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Familiarity with xref:../../storage/understanding-persistent-storage.adoc#unders
1313

1414
To create CSI-provisioned PVs that mount to Azure File storage assets, {product-title} installs the Azure File CSI Driver Operator and the Azure File CSI driver by default in the `openshift-cluster-csi-drivers` namespace.
1515

16-
* The _Azure File CSI Driver Operator_ provides a storage class that is named `azurefile-csi` that you can use to create persistent volume claims (PVCs).
16+
* The _Azure File CSI Driver Operator_ provides a storage class that is named `azurefile-csi` that you can use to create persistent volume claims (PVCs). You can disable this default storage class if desired (see xref:../../storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc#persistent-storage-csi-sc-manage[Managing the default storage class]).
1717

1818
* The _Azure File CSI driver_ enables you to create and mount Azure File PVs. The Azure File CSI driver supports dynamic volume provisioning by allowing storage volumes to be created on-demand, eliminating the need for cluster administrators to pre-provision storage.
1919

storage/container_storage_interface/persistent-storage-csi-azure.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Familiarity with xref:../../storage/understanding-persistent-storage.adoc#unders
1414

1515
To create CSI-provisioned PVs that mount to Azure Disk storage assets, {product-title} installs the Azure Disk CSI Driver Operator and the Azure Disk CSI driver by default in the `openshift-cluster-csi-drivers` namespace.
1616

17-
* The _Azure Disk CSI Driver Operator_ provides a storage class named `managed-csi` that you can use to create persistent volume claims (PVCs). The Azure Disk CSI Driver Operator supports dynamic volume provisioning by allowing storage volumes to be created on-demand, eliminating the need for cluster administrators to pre-provision storage.
17+
* The _Azure Disk CSI Driver Operator_ provides a storage class named `managed-csi` that you can use to create persistent volume claims (PVCs). The Azure Disk CSI Driver Operator supports dynamic volume provisioning by allowing storage volumes to be created on-demand, eliminating the need for cluster administrators to pre-provision storage. You can disable this default storage class if desired (see xref:../../storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc#persistent-storage-csi-sc-manage[Managing the default storage class]).
1818

1919
* The _Azure Disk CSI driver_ enables you to create and mount Azure Disk PVs.
2020

storage/container_storage_interface/persistent-storage-csi-cinder.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Familiarity with xref:../../storage/understanding-persistent-storage.adoc#unders
1414

1515
To create CSI-provisioned PVs that mount to OpenStack Cinder storage assets, {product-title} installs the OpenStack Cinder CSI Driver Operator and the OpenStack Cinder CSI driver in the `openshift-cluster-csi-drivers` namespace.
1616

17-
* The _OpenStack Cinder CSI Driver Operator_ provides a CSI storage class that you can use to create PVCs.
17+
* The _OpenStack Cinder CSI Driver Operator_ provides a CSI storage class that you can use to create PVCs. You can disable this default storage class if desired (see xref:../../storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc#persistent-storage-csi-sc-manage[Managing the default storage class]).
1818

1919
* The _OpenStack Cinder CSI driver_ enables you to create and mount OpenStack Cinder PVs.
2020

storage/container_storage_interface/persistent-storage-csi-ebs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Familiarity with xref:../../storage/understanding-persistent-storage.adoc#unders
1414

1515
To create CSI-provisioned PVs that mount to AWS EBS storage assets, {product-title} installs the AWS EBS CSI Driver Operator and the AWS EBS CSI driver by default in the `openshift-cluster-csi-drivers` namespace.
1616

17-
* The _AWS EBS CSI Driver Operator_ provides a StorageClass by default that you can use to create PVCs. You also have the option to create the AWS EBS StorageClass as described in xref:../../storage/persistent_storage/persistent-storage-aws.adoc#persistent-storage-aws[Persistent storage using AWS Elastic Block Store].
17+
* The _AWS EBS CSI Driver Operator_ provides a StorageClass by default that you can use to create PVCs. You can disable this default storage class if desired (see xref:../../storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc#persistent-storage-csi-sc-manage[Managing the default storage class]). You also have the option to create the AWS EBS StorageClass as described in xref:../../storage/persistent_storage/persistent-storage-aws.adoc#persistent-storage-aws[Persistent storage using AWS Elastic Block Store].
1818

1919
* The _AWS EBS CSI driver_ enables you to create and mount AWS EBS PVs.
2020

0 commit comments

Comments
 (0)