Skip to content

OSDOCS-13952#vSphere Operator now uses secret instead of config map #91923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 29 additions & 43 deletions modules/persistent-storage-csi-vsphere-change-max-snapshot.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"
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.
Expand All @@ -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
----
+
Expand Down Expand Up @@ -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 = "[email protected]"
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.