From fdc16eadb970330a88a32fd100013176338c3150 Mon Sep 17 00:00:00 2001 From: Tsuzu <8574909+tsuzu@users.noreply.github.com> Date: Fri, 3 Jan 2025 02:44:30 +0900 Subject: [PATCH] Requeue after instance creation --- internal/controller/incusmachine_controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/controller/incusmachine_controller.go b/internal/controller/incusmachine_controller.go index 0dd2766..8a1e594 100644 --- a/internal/controller/incusmachine_controller.go +++ b/internal/controller/incusmachine_controller.go @@ -322,7 +322,9 @@ func (r *IncusMachineReconciler) reconcileNormal(ctx context.Context, cluster *c return ctrl.Result{}, fmt.Errorf("failed to create instance: %w", err) } - return ctrl.Result{}, nil + return ctrl.Result{ + RequeueAfter: 10 * time.Second, + }, nil } func (r *IncusMachineReconciler) getBootstrapData(ctx context.Context, namespace string, dataSecretName string) (string, bootstrapv1.Format, error) {