Summary
Automate the MTA-904 StorageClass Conversion scenario validating that the complete PVC conversion workflow works using namespace-admin scoped non-admin users.
This is a sub-issue of #661 (E2E test coverage for StorageClass conversion).
Polarion
- MTA-904 — [CLI][CRN] Verify StorageClass conversion works for a non-admin user
App
MySQL from k8s-apps-deployer with two PVCs:
Scope
- Cross-cluster source and target contexts
- Non-admin source and target contexts
- Namespace-admin RBAC granted through
SetupActiveKubectlRunners
- Different destination StorageClass
- MTA-903 pipeline order: export/transform/render, transfer PVCs, then apply and start the target workload
Test Flow
- Grant namespace-admin permissions to the non-admin users.
- Deploy MySQL on the source and capture row-count and checksum fingerprints.
- Quiesce the source workload.
- Run export, transform, and apply rendering as the non-admin Crane user.
- Transfer both MySQL PVCs sequentially with
--dest-storage-class.
- Verify destination PVCs are Bound and use the destination StorageClass.
- Verify both PVCs contain data before starting MySQL.
- Apply the rendered manifests on the target using the non-admin runner.
- Start MySQL and compare target row count and checksum fingerprints with the source.
- Verify no
app.konveyor.io/created-for-pvc helper resources remain.
Acceptance Criteria
- The complete pipeline succeeds using only namespace-admin scoped RBAC for workload and PVC operations.
- Both destination PVCs use the target StorageClass.
- Both MySQL data volumes remain intact and uncontaminated.
- Target MySQL data fingerprints match the source.
- No transfer-pvc helper resources remain after cleanup.
Summary
Automate the MTA-904 StorageClass Conversion scenario validating that the complete PVC conversion workflow works using namespace-admin scoped non-admin users.
This is a sub-issue of #661 (E2E test coverage for StorageClass conversion).
Polarion
App
MySQL from k8s-apps-deployer with two PVCs:
mysql-datamysql-data1Scope
SetupActiveKubectlRunnersTest Flow
--dest-storage-class.app.konveyor.io/created-for-pvchelper resources remain.Acceptance Criteria