Skip to content

Commit eeccb83

Browse files
aniruddha2000janiskemper
authored andcommitted
Add reset of hook server in case where an upgrade happens that does not
update the Kubernetes version Signed-off-by: Aniruddha Basak <[email protected]>
1 parent b8df49e commit eeccb83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/controller/clusteraddon_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ func (r *ClusterAddonReconciler) Reconcile(ctx context.Context, req reconcile.Re
406406
clusterAddon.Spec.ClusterStack = cluster.Spec.Topology.Class
407407
clusterAddon.Status.Ready = true
408408

409+
// unset spec hook and make cluster addon ready
410+
clusterAddon.Spec.Hook = ""
411+
409412
return ctrl.Result{}, nil
410413
}
411414

0 commit comments

Comments
 (0)