You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor members and services status update (#1056)
* Refactor members and services status update
Signed-off-by: Daniel Fan <[email protected]>
* Update typo in log message
Signed-off-by: Daniel Fan <[email protected]>
* Re-construct if condition for better code readability
Signed-off-by: Daniel Fan <[email protected]>
---------
Signed-off-by: Daniel Fan <[email protected]>
ifIMOrIAM==s.OperatorName { //eventually this should be changed to the variable but the operator name is still listed as iam in practice even when im is requested
713
-
found=true
714
-
imIndex=i
715
-
break
716
-
}
717
-
}
718
-
iffound {
719
-
ifr.Status.Services[imIndex].Status!="Ready" {
720
-
klog.Info("Waiting for IM service to be Ready ...")
721
-
requeue=true
722
-
returnrequeue
723
-
}
724
-
} else {
725
-
klog.Info("Waiting for IM service status ...")
726
-
requeue=true
727
-
returnrequeue
728
-
}
729
-
}
730
-
}
731
-
returnrequeue
732
-
}
733
-
734
686
// GetAllRegistryReconcileRequest gets all the Registry ReconcileRequest.
klog.Infof("Waiting for status of all requested services to be instantiated for OperandRequest %s/%s ...", requestInstance.Namespace, requestInstance.Name)
1390
+
returnfalse, nil
1391
+
}
1392
+
1393
+
serviceStatus:=true
1394
+
// wait for the status of the requested services to be ready
1395
+
for_, s:=rangerequestInstance.Status.Services {
1396
+
if_, ok:=requestedServicesSet[s.OperatorName]; ok {
1397
+
ifs.Status!="Ready" {
1398
+
klog.Infof("Waiting for status of service %s to be Ready for OperandRequest %s/%s ...", s.OperatorName, requestInstance.Namespace, requestInstance.Name)
0 commit comments