Execute the migration by running the following command:
migrate run
Migration Script Example
The script first scans all service instances and service bindings that are managed in your cluster by SVCAT, and verifies whether they are also maintained in SAP BTP.
Migration won't be performed on those instances and bindings that aren't found in SAP BTP:
migrate run
*** Fetched 2 instances from SM
*** Fetched 1 bindings from SM
*** Fetched 5 svcat instances from cluster
*** Fetched 2 svcat bindings from cluster
*** Preparing resources
svcat instance name 'test11' id 'XXX-6134-4c89-bff5-YYY' (test11) not found in SM, skipping it...
svcat instance name 'test21' id 'XXX-cae6-4e23-9e8a-YYY' (test21) not found in SM, skipping it...
svcat instance name 'test22' id 'XXX-dc1d-49d1-86c0-YYY' (test22) not found in SM, skipping it...
svcat binding name 'test5' id 'XXX-5226-42cc-81e5-YYY' (test5) not found in SM, skipping it...
*** found 2 instances and 1 bindings to migrate
Before the actual migration starts, the script also validates whether all the resources are migratable.
Note that if there is an issue with one or more resources, the process stops.
svcat instance 'test32' in namespace 'default' was validated successfully
svcat instance 'test35' in namespace 'default' was validated successfully
svcat binding 'test31' in namespace 'default' was validated successfully
*** Validation completed successfully
After all of the sources were validated successfully, the actual migration starts.
Each service instance and binding is removed from the Service Catalog (SVCAT) and added to the SAP BTP service operator:
migrating service instance 'test32' in namespace 'default' (smID: 'XXX-3d1f-40db-8cac-YYY')
deleting svcat resource type 'serviceinstances' named 'test32' in namespace 'default'
migrating service instance 'test35' in namespace 'default' (smID: 'XXX-0f94-4fde-b524-YYY')
deleting svcat resource type 'serviceinstances' named 'test35' in namespace 'default'
migrating service binding 'test31' in namespace 'default' (smID: 'XXX-fc36-4d50-a925-YYY')
deleting svcat resource type 'servicebindings' named 'test31' in namespace 'default'
*** Migration completed successfully
Dry Run
Before executing the migration, you can perform a dry run by running the following command:
migrate dry-run
The dry run performs both validations mentioned in the previous section, but doesn't perform the actual migration.
At the end of the run, summary including all encountered errors is shown.
Note
Once the migration process has been completed, the SVCAT-based platform is no longer usable.