Skip to content

Commit dc387fe

Browse files
authored
Merge pull request #43248 from sbeskin-redhat/MIG_1040_Document_additional_excluded_resources
MIG 1040 Document additional excluded resources
2 parents bad6401 + 7c7de0b commit dc387fe

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

modules/migration-excluding-resources.adoc

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ By default, the {mtc-short} excludes service catalog resources and Operator Life
2020
$ oc edit migrationcontroller <migration_controller> -n openshift-migration
2121
----
2222

23-
. Update the `spec` section by adding a parameter to exclude specific resources or by adding a resource to the `excluded_resources` parameter if it does not have its own exclusion parameter:
23+
. Update the `spec` section by adding parameters to exclude specific resources. For those resources that do not have their own exclusion parameters, add the `additional_excluded_resources` parameter:
2424
+
2525
[source,yaml]
2626
----
@@ -32,25 +32,15 @@ metadata:
3232
spec:
3333
disable_image_migration: true <1>
3434
disable_pv_migration: true <2>
35+
additional_excluded_resources: <3>
36+
- resource1
37+
- resource2
3538
...
36-
excluded_resources: <3>
37-
- imagetags
38-
- templateinstances
39-
- clusterserviceversions
40-
- packagemanifests
41-
- subscriptions
42-
- servicebrokers
43-
- servicebindings
44-
- serviceclasses
45-
- serviceinstances
46-
- serviceplans
47-
- operatorgroups
48-
- events
49-
- events.events.k8s.io
5039
----
51-
<1> Add `disable_image_migration: true` to exclude image streams from the migration. Do not edit the `excluded_resources` parameter. `imagestreams` is added to `excluded_resources` when the `MigrationController` pod restarts.
52-
<2> Add `disable_pv_migration: true` to exclude PVs from the migration plan. Do not edit the `excluded_resources` parameter. `persistentvolumes` and `persistentvolumeclaims` are added to `excluded_resources` when the `MigrationController` pod restarts. Disabling PV migration also disables PV discovery when you create the migration plan.
53-
<3> You can add {product-title} resources to the `excluded_resources` list. Do not delete the default excluded resources. These resources are problematic to migrate and must be excluded.
40+
<1> Add `disable_image_migration: true` to exclude image streams from the migration. `imagestreams` is added to the `excluded_resources` list in `main.yml` when the `MigrationController` pod restarts.
41+
<2> Add `disable_pv_migration: true` to exclude PVs from the migration plan. `persistentvolumes` and `persistentvolumeclaims` are added to the `excluded_resources` list in `main.yml` when the `MigrationController` pod restarts. Disabling PV migration also disables PV discovery when you create the migration plan.
42+
<3> You can add {product-title} resources that you want to exclude to the `additional_excluded_resources` list.
43+
5444

5545
. Wait two minutes for the `MigrationController` pod to restart so that the changes are applied.
5646

@@ -66,7 +56,7 @@ The output contains the excluded resources:
6656
.Example output
6757
[source,yaml]
6858
----
69-
- name: EXCLUDED_RESOURCES
70-
value:
71-
imagetags,templateinstances,clusterserviceversions,packagemanifests,subscriptions,servicebrokers,servicebindings,serviceclasses,serviceinstances,serviceplans,imagestreams,persistentvolumes,persistentvolumeclaims
59+
name: EXCLUDED_RESOURCES
60+
value:
61+
resource1,resource2,imagetags,templateinstances,clusterserviceversions,packagemanifests,subscriptions,servicebrokers,servicebindings,serviceclasses,serviceinstances,serviceplans,imagestreams,persistentvolumes,persistentvolumeclaims
7262
----

0 commit comments

Comments
 (0)