@@ -1346,20 +1346,19 @@ func (o *Operator) syncInstallPlans(obj interface{}) (syncError error) {
1346
1346
}
1347
1347
1348
1348
// Mark the InstallPlan as failed for a fatal Operator Group related error
1349
- ipFailError := fmt .Errorf ("attenuated service account query failed - %v" , err )
1350
- logger .Infof ("InstallPlan failed: %v" , ipFailError )
1351
-
1349
+ logger .Infof ("attenuated service account query failed - %v" , err )
1350
+ ipFailError := fmt .Errorf ("invalid operator group - %v" , err )
1352
1351
now := o .now ()
1353
1352
out := plan .DeepCopy ()
1354
1353
out .Status .SetCondition (v1alpha1 .ConditionFailed (v1alpha1 .InstallPlanInstalled ,
1355
1354
v1alpha1 .InstallPlanReasonInstallCheckFailed , ipFailError .Error (), & now ))
1356
1355
out .Status .Phase = v1alpha1 .InstallPlanPhaseFailed
1357
1356
1358
- logger .Info ("Transitioning InstallPlan to failed" )
1357
+ logger .Info ("transitioning InstallPlan to failed" )
1359
1358
if _ , err := o .client .OperatorsV1alpha1 ().InstallPlans (plan .GetNamespace ()).UpdateStatus (context .TODO (), out , metav1.UpdateOptions {}); err != nil {
1360
1359
updateErr := errors .New ("error updating InstallPlan status: " + err .Error ())
1361
1360
logger = logger .WithField ("updateError" , updateErr )
1362
- logger .Info ("error transitioning InstallPlan to failed" )
1361
+ logger .Errorf ("error transitioning InstallPlan to failed" )
1363
1362
1364
1363
// retry sync with error to update InstallPlan status
1365
1364
syncError = fmt .Errorf ("InstallPlan failed: %s and error updating InstallPlan status as failed: %s" , ipFailError , updateErr )
0 commit comments