fix return invalid error

Signed-off-by: duguhaotian <knowledgehao@163.com>
This commit is contained in:
haozi007 2021-10-22 04:39:29 +01:00 committed by duguhaotian
parent 4ac02a613f
commit d10da4f1db
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ func (c *Controller) syncCluster(cluster *clusterv1alpha1.Cluster) (controllerru
// create execution space
err := c.createExecutionSpace(cluster)
if err != nil {
c.EventRecorder.Event(cluster, corev1.EventTypeWarning, fmt.Sprintf("Failed %s", clusterv1alpha1.EventReasonRemoveExecutionSpaceFailed), err.Error())
c.EventRecorder.Event(cluster, corev1.EventTypeWarning, fmt.Sprintf("Failed %s", clusterv1alpha1.EventReasonCreateExecutionSpaceFailed), err.Error())
return controllerruntime.Result{Requeue: true}, err
}