Skip to content

Commit

Permalink
Requeue after instance creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed Jan 2, 2025
1 parent 41fad11 commit fdc16ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/controller/incusmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fdc16ea

Please sign in to comment.