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
ifcrb, ok:=bindingObj.(*placementv1beta1.ClusterResourceBinding); ok {
92
-
scheduledBindings[i] =crb
93
-
} else {
94
-
returnnil, nil, fmt.Errorf("expected ClusterResourceBinding but got %T - initialize function needs further refactoring for namespace-scoped resources", bindingObj)
ifcrb, ok:=bindingObj.(*placementv1beta1.ClusterResourceBinding); ok {
100
-
toBeDeletedBindings[i] =crb
101
-
} else {
102
-
returnnil, nil, fmt.Errorf("expected ClusterResourceBinding but got %T - initialize function needs further refactoring for namespace-scoped resources", bindingObj)
unexpectedErr:=controller.NewUnexpectedBehaviorError(fmt.Errorf("the cluster `%s` to be deleted is not in the delete stage", binding.Spec.TargetCluster))
280
-
klog.ErrorS(unexpectedErr, "Detect new cluster to be unscheduled", "clusterResourceBinding", klog.KObj(binding), "clusterStagedUpdateRun", updateRunRef)
unexpectedErr:=controller.NewUnexpectedBehaviorError(fmt.Errorf("the cluster `%s` to be deleted is not in the delete stage", bindingSpec.TargetCluster))
292
+
klog.ErrorS(unexpectedErr, "Detect new cluster to be unscheduled", "binding", klog.KObj(bindingObj), "clusterStagedUpdateRun", updateRunRef)
ifcrb, ok:=bindingObj.(*placementv1beta1.ClusterResourceBinding); ok {
133
+
bindings[i] =crb
134
+
} else {
135
+
returnnil, fmt.Errorf("expected ClusterResourceBinding but got %T - initialize function needs further refactoring for namespace-scoped resources", bindingObj)
0 commit comments