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
r.recorder.Eventf(originPod, corev1.EventTypeWarning, "OriginPodContext", "cannot found resource context id %d of origin pod %s/%s", originPodId, originPod.Namespace, originPod.Name)
136
+
returnfmt.Errorf("cannot found context for replace origin pod %s/%s", originPod.Namespace, originPod.Name)
logger.Info("replaceOriginPods", "try to reuse new pod resourceContext id", instanceId)
156
161
} else {
157
162
ifavailableContexts[i] ==nil {
158
-
returnfmt.Errorf("cannot found available context for replace new pod when replacing origin pod %s/%s", originPod.Namespace, originPod.Name)
163
+
r.recorder.Eventf(originPod, corev1.EventTypeWarning, "AvailableContext", "cannot found available context for replace new pod when replacing origin pod %s/%s", originPod.Namespace, originPod.Name)
164
+
returnfmt.Errorf("cannot find available context for replace new pod when replacing origin pod %s/%s", originPod.Namespace, originPod.Name)
159
165
}
160
166
newPodContext=availableContexts[i]
161
167
// add replace pair-relation to podContexts for originPod and newPod
0 commit comments