diff --git a/agent/reconciler/host_reconciler.go b/agent/reconciler/host_reconciler.go index d6d9dc2c7..a3307bade 100644 --- a/agent/reconciler/host_reconciler.go +++ b/agent/reconciler/host_reconciler.go @@ -99,6 +99,11 @@ func (r *HostReconciler) reconcileNormal(ctx context.Context, byoHost *infrastru return ctrl.Result{}, nil } + if _, err := os.Stat(bootstrapSentinelFile); err == nil { + logger.Info("Found sentinel file, setting BootstrapK8sNodeSucceeded condition to true") + conditions.MarkTrue(byoHost, infrastructurev1beta1.K8sNodeBootstrapSucceeded) + } + if !conditions.IsTrue(byoHost, infrastructurev1beta1.K8sNodeBootstrapSucceeded) { bootstrapScript, err := r.getBootstrapScript(ctx, byoHost.Spec.BootstrapSecret.Name, byoHost.Spec.BootstrapSecret.Namespace) if err != nil {