Skip to content

Commit 8305e73

Browse files
committed
🌱 Set clusterAddon on ready only if required
Currently, we set the clusterAddon on ready always. we want to do that only at the end of a flow. Signed-off-by: janiskemper <[email protected]>
1 parent 8651216 commit 8305e73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/clusteraddon_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ func (r *ClusterAddonReconciler) Reconcile(ctx context.Context, req reconcile.Re
454454
clusterAddon.SetStageAnnotations(csov1alpha1.StageAnnotationValueCreated)
455455

456456
clusterAddon.Spec.ClusterStack = cluster.Spec.Topology.Class
457+
clusterAddon.Status.Ready = true
457458
}
458459

459460
// Helm chart has been applied successfully
@@ -466,9 +467,8 @@ func (r *ClusterAddonReconciler) Reconcile(ctx context.Context, req reconcile.Re
466467
// remove the status resource if hook is finished
467468
clusterAddon.Status.Resources = make([]*csov1alpha1.Resource, 0)
468469

469-
// unset spec hook and make cluster addon ready
470+
// unset spec hook
470471
clusterAddon.Spec.Hook = ""
471-
clusterAddon.Status.Ready = true
472472

473473
return ctrl.Result{}, nil
474474
}

0 commit comments

Comments
 (0)