From 374d472acca5ea265169f6a4bb7368449e4d13c9 Mon Sep 17 00:00:00 2001 From: Lisa Pettyjohn Date: Tue, 8 Apr 2025 20:44:49 -0400 Subject: [PATCH] OSDOCS-13952#vSphere Operator now uses secret instead of config map --- ...orage-csi-vsphere-change-max-snapshot.adoc | 72 ++++++++----------- 1 file changed, 29 insertions(+), 43 deletions(-) diff --git a/modules/persistent-storage-csi-vsphere-change-max-snapshot.adoc b/modules/persistent-storage-csi-vsphere-change-max-snapshot.adoc index 623f6666211f..94b120a226cb 100644 --- a/modules/persistent-storage-csi-vsphere-change-max-snapshot.adoc +++ b/modules/persistent-storage-csi-vsphere-change-max-snapshot.adoc @@ -19,35 +19,28 @@ For more VMware snapshot performance recommendations, see *_Additional resources .Procedure -. Check the current config map by the running the following command: +. Check the current secret by the running the following command: + [source, terminal] ---- -$ oc -n openshift-cluster-csi-drivers get cm/vsphere-csi-config -o yaml +$ oc -n openshift-cluster-csi-drivers get secret/vsphere-csi-config-secret -o jsonpath='{.data.cloud\.conf}' | base64 -d ---- + .Example output + [source, terminal] ---- -apiVersion: v1 -data: - cloud.conf: |+ - # Labels with topology values are added dynamically via operator - [Global] - cluster-id = vsphere-01-cwv8p - - [VirtualCenter "vcenter.openshift.com"] - insecure-flag = true - datacenters = DEVQEdatacenter - migration-datastore-url = ds:///vmfs/volumes/vsan:527320283a8c3163-2faa6dc5949a3a28/ - -kind: ConfigMap -metadata: - creationTimestamp: "2024-03-06T09:46:40Z" - name: vsphere-csi-config - namespace: openshift-cluster-csi-drivers - resourceVersion: "126687" +# Labels with topology values are added dynamically via operator +[Global] +cluster-id = vsphere-01-cwv8p + +# Populate VCenters (multi) after here +[VirtualCenter "vcenter.openshift.com"] +insecure-flag = true +datacenters = DEVQEdatacenter +password = "xxxxxxxx" +user = "xxxxxxxx@devcluster.openshift.com" +migration-datastore-url = ds:///vmfs/volumes/vsan:52c842f232751e0d-3253aadeac21ca82/ ---- + In this example, the global maximum number of snapshots is not configured, so the default value of 3 is applied. @@ -59,6 +52,7 @@ In this example, the global maximum number of snapshots is not configured, so th [source, terminal] ---- $ oc patch clustercsidriver/csi.vsphere.vmware.com --type=merge -p '{"spec":{"driverConfig":{"vSphere":{"globalMaxSnapshotsPerBlockVolume": 10}}}}' + clustercsidriver.operator.openshift.io/csi.vsphere.vmware.com patched ---- + @@ -94,34 +88,26 @@ In this example, the vSAN limit is being changed to 7 (`granularMaxSnapshotsPerB + [source, terminal] ---- -$ oc -n openshift-cluster-csi-drivers get cm/vsphere-csi-config -o yaml +$ oc -n openshift-cluster-csi-drivers get secret/vsphere-csi-config-secret -o jsonpath='{.data.cloud\.conf}' | base64 -d ---- + .Example output + [source, terminal] ---- -apiVersion: v1 -data: - cloud.conf: |+ - # Labels with topology values are added dynamically via operator - [Global] - cluster-id = vsphere-01-cwv8p - - [VirtualCenter "vcenter.openshift.com"] - insecure-flag = true - datacenters = DEVQEdatacenter - migration-datastore-url = ds:///vmfs/volumes/vsan:527320283a8c3163-2faa6dc5949a3a28/ - - [Snapshot] - global-max-snapshots-per-block-volume = 10 <1> - -kind: ConfigMap -metadata: - creationTimestamp: "2024-03-06T09:46:40Z" - name: vsphere-csi-config - namespace: openshift-cluster-csi-drivers - resourceVersion: "127118" - uid: f6968303-81d8-4048-99c1-d8211363d0fa +# Labels with topology values are added dynamically via operator +[Global] +cluster-id = vsphere-01-cwv8p + +# Populate VCenters (multi) after here +[VirtualCenter "vcenter.openshift.com"] +insecure-flag = true +datacenters = DEVQEdatacenter +password = "xxxxxxxx" +user = "xxxxxxxx@devcluster.openshift.com" +migration-datastore-url = ds:///vmfs/volumes/vsan:52c842f232751e0d-3253aadeac21ca82/ + +[Snapshot] +global-max-snapshots-per-block-volume = 10 <1> ---- <1> `global-max-snapshots-per-block-volume` is now set to 10.