@@ -472,17 +472,17 @@ func (p *phaseReconciler) fetch(ctx context.Context) (reconcile.Result, error) {
472
472
// ProviderSpec provides fields for customizing the provider deployment options.
473
473
// We can use clusterctl library to apply this customizations.
474
474
if err := repository .AlterComponents (p .components , customizeObjectsFn (p .provider )); err != nil {
475
- return reconcile.Result {}, wrapPhaseError (err , operatorv1 .ComponentsFetchErrorReason , operatorv1 .ProviderInstalledCondition )
475
+ return reconcile.Result {}, wrapPhaseError (err , operatorv1 .ComponentsCustomizationErrorReason , operatorv1 .ProviderInstalledCondition )
476
476
}
477
477
478
478
// Apply patches to the provider components if specified.
479
479
if err := repository .AlterComponents (p .components , applyPatches (ctx , p .provider )); err != nil {
480
- return reconcile.Result {}, wrapPhaseError (err , operatorv1 .ComponentsFetchErrorReason , operatorv1 .ProviderInstalledCondition )
480
+ return reconcile.Result {}, wrapPhaseError (err , operatorv1 .ComponentsPatchErrorReason , operatorv1 .ProviderInstalledCondition )
481
481
}
482
482
483
483
// Apply image overrides to the provider manifests.
484
484
if err := repository .AlterComponents (p .components , imageOverrides (p .components .ManifestLabel (), p .overridesClient )); err != nil {
485
- return reconcile.Result {}, wrapPhaseError (err , operatorv1 .ComponentsFetchErrorReason , operatorv1 .ProviderInstalledCondition )
485
+ return reconcile.Result {}, wrapPhaseError (err , operatorv1 .ComponentsImageOverrideErrorReason , operatorv1 .ProviderInstalledCondition )
486
486
}
487
487
488
488
conditions .Set (p .provider , conditions .TrueCondition (operatorv1 .ProviderInstalledCondition ))
0 commit comments