@@ -125,47 +125,68 @@ func (pg *PlanGenerator) stepConfigurationWithSubStep(s step, newSubStep bool) *
125
125
pg .Plan .Spec .stepMap [stepKey ] = & Step {}
126
126
switch s { // nolint:gocritic,exhaustive
127
127
case stepOrphanMRs :
128
- setPatchStep ("deletion-policy-orphan" , pg .Plan .Spec .stepMap [stepKey ])
128
+ setPatchStep ("deletion-policy-orphan" , "Setting the deletion policies of Managed Resources to Orphan as a precaution against any unexpected problems that may occur during migration" ,
129
+ pg .Plan .Spec .stepMap [stepKey ])
129
130
case stepRevertOrphanMRs :
130
- setPatchStep ("deletion-policy-delete" , pg .Plan .Spec .stepMap [stepKey ])
131
+ setPatchStep ("deletion-policy-delete" , "Setting the deletion policies of Managed Resources whose deletion policy is set to Orphan at the beginning of the migration, to Delete again" ,
132
+ pg .Plan .Spec .stepMap [stepKey ])
131
133
case stepNewFamilyProvider :
132
- setApplyStep ("new-ssop" , pg .Plan .Spec .stepMap [stepKey ])
134
+ setApplyStep ("new-ssop" , "Installing the new family provider" ,
135
+ pg .Plan .Spec .stepMap [stepKey ])
133
136
case stepNewServiceScopedProvider :
134
- setApplyStep ("new-ssop" , pg .Plan .Spec .stepMap [stepKey ])
137
+ setApplyStep ("new-ssop" , "Installing the new service scoped providers" ,
138
+ pg .Plan .Spec .stepMap [stepKey ])
135
139
case stepConfigurationPackageDisableDepResolution :
136
- setPatchStep ("disable-dependency-resolution" , pg .Plan .Spec .stepMap [stepKey ])
140
+ setPatchStep ("disable-dependency-resolution" , "Setting the value of skipDependencyResolution field to true so that dependencies in the configuration package are not resolved automatically" ,
141
+ pg .Plan .Spec .stepMap [stepKey ])
137
142
case stepConfigurationPackageEnableDepResolution :
138
- setPatchStep ("enable-dependency-resolution" , pg .Plan .Spec .stepMap [stepKey ])
143
+ setPatchStep ("enable-dependency-resolution" , "Setting the value of skipDependencyResolution field in the configuration package back to false" ,
144
+ pg .Plan .Spec .stepMap [stepKey ])
139
145
case stepEditConfigurationPackage :
140
- setPatchStep ("edit-configuration-package" , pg .Plan .Spec .stepMap [stepKey ])
146
+ setPatchStep ("edit-configuration-package" , "Setting the configuration package reference to new one" ,
147
+ pg .Plan .Spec .stepMap [stepKey ])
141
148
case stepEditPackageLock :
142
- setPatchStep ("edit-package-lock" , pg .Plan .Spec .stepMap [stepKey ])
149
+ setPatchStep ("edit-package-lock" , "Deleting configuration package dependency from Lock resource" ,
150
+ pg .Plan .Spec .stepMap [stepKey ])
143
151
case stepDeleteMonolithicProvider :
144
- setDeleteStep ("delete-monolithic-provider" , pg .Plan .Spec .stepMap [stepKey ])
152
+ setDeleteStep ("delete-monolithic-provider" , "Deleting monolithic provider" ,
153
+ pg .Plan .Spec .stepMap [stepKey ])
145
154
case stepActivateFamilyProviderRevision :
146
- setPatchStep ("activate-ssop" , pg .Plan .Spec .stepMap [stepKey ])
155
+ setPatchStep ("activate-ssop" , "Activating the new family provider after deletion monolithic one" ,
156
+ pg .Plan .Spec .stepMap [stepKey ])
147
157
case stepActivateServiceScopedProviderRevision :
148
- setPatchStep ("activate-ssop" , pg .Plan .Spec .stepMap [stepKey ])
158
+ setPatchStep ("activate-ssop" , "Activating the new service scoped providers" ,
159
+ pg .Plan .Spec .stepMap [stepKey ])
149
160
case stepEditConfigurationMetadata :
150
- setExecStep ("edit-configuration-metadata" , pg .Plan .Spec .stepMap [stepKey ])
161
+ setExecStep ("edit-configuration-metadata" , "Editing the Configuration Meta resource with new family provider references" ,
162
+ pg .Plan .Spec .stepMap [stepKey ])
151
163
case stepBackupMRs :
152
- setExecStep ("backup-managed-resources" , pg .Plan .Spec .stepMap [stepKey ])
164
+ setExecStep ("backup-managed-resources" , "Backing up Managed Resources" ,
165
+ pg .Plan .Spec .stepMap [stepKey ])
153
166
case stepBackupComposites :
154
- setExecStep ("backup-composite-resources" , pg .Plan .Spec .stepMap [stepKey ])
167
+ setExecStep ("backup-composite-resources" , "Backing up Composite Resources" ,
168
+ pg .Plan .Spec .stepMap [stepKey ])
155
169
case stepBackupClaims :
156
- setExecStep ("backup-claim-resources" , pg .Plan .Spec .stepMap [stepKey ])
170
+ setExecStep ("backup-claim-resources" , "Backing up Claims" ,
171
+ pg .Plan .Spec .stepMap [stepKey ])
157
172
case stepCheckHealthFamilyProvider :
158
- setExecStep ("wait-for-healthy" , pg .Plan .Spec .stepMap [stepKey ])
173
+ setExecStep ("wait-for-healthy" , "Checking health of new family provider" ,
174
+ pg .Plan .Spec .stepMap [stepKey ])
159
175
case stepCheckHealthNewServiceScopedProvider :
160
- setExecStep ("wait-for-healthy" , pg .Plan .Spec .stepMap [stepKey ])
176
+ setExecStep ("wait-for-healthy" , "Checking health of new service scoped provider" ,
177
+ pg .Plan .Spec .stepMap [stepKey ])
161
178
case stepCheckInstallationFamilyProviderRevision :
162
- setExecStep ("wait-for-installed" , pg .Plan .Spec .stepMap [stepKey ])
179
+ setExecStep ("wait-for-installed" , "Checking installation of new family provider" ,
180
+ pg .Plan .Spec .stepMap [stepKey ])
163
181
case stepCheckInstallationServiceScopedProviderRevision :
164
- setExecStep ("wait-for-installed" , pg .Plan .Spec .stepMap [stepKey ])
182
+ setExecStep ("wait-for-installed" , "Checking installation of new service scoped provider" ,
183
+ pg .Plan .Spec .stepMap [stepKey ])
165
184
case stepBuildConfiguration :
166
- setExecStep ("build-configuration" , pg .Plan .Spec .stepMap [stepKey ])
185
+ setExecStep ("build-configuration" , "Building the new configuration pkg" ,
186
+ pg .Plan .Spec .stepMap [stepKey ])
167
187
case stepPushConfiguration :
168
- setExecStep ("push-configuration" , pg .Plan .Spec .stepMap [stepKey ])
188
+ setExecStep ("push-configuration" , "Pushing the new configuration pkg" ,
189
+ pg .Plan .Spec .stepMap [stepKey ])
169
190
default :
170
191
panic (fmt .Sprintf (errInvalidStepFmt , s ))
171
192
}
0 commit comments