migtools / mig-controller

OpenShift Migration Controller
Apache License 2.0
22 stars 41 forks source link

StorageClass Access Mode: allow the in-file mapping to be overridden by a configmap #1366

Open KarthikDev opened 7 months ago

KarthikDev commented 7 months ago

I am migrating project A from openshift 3 to openshift 4. it has a pvc with accessmode RWX, i am selecting destination storage class provisioner as csi.trident.netapp.io as this is not in your accessModeList variable, the storageclass whatever i have selected for the above PVC is getting replaced with default storage class mentioned in openshift 4 cluster and accessmode is also getting overwritten to RWO instead of RWX.

I can see there has been a comment in code where it has been discussed that hardcoded accessmodes and provisioner list can be modified by providing it as a configmap. I dont think this has been implemented at all.

comment i can see in the below file: // TODO: allow the in-file mapping to be overridden by a configmap

mig-controller/pkg/apis/migration/v1alpha1/migcluster_types.go