Skip to content

Commit ae3d44a

Browse files
authored
fix: clickhouse switchover failed during restart (#9692)
1 parent ee9075d commit ae3d44a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/controller/instanceset/reconciler_update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func (r *updateReconciler) switchover(tree *kubebuilderx.ObjectTree, its *worklo
279279
}
280280
return m
281281
}()
282-
lfa, err := lifecycle.New(its.Namespace, clusterName, its.Name, lifecycleActions, templateVars, pod)
282+
lfa, err := lifecycle.New(its.Namespace, clusterName, its.Labels[constant.KBAppComponentLabelKey], lifecycleActions, templateVars, pod)
283283
if err != nil {
284284
return err
285285
}
@@ -333,7 +333,7 @@ func (r *updateReconciler) reconfigureConfig(tree *kubebuilderx.ObjectTree, its
333333
}
334334
return m
335335
}()
336-
lfa, err := lifecycle.New(its.Namespace, clusterName, its.Name, lifecycleActions, templateVars, pod)
336+
lfa, err := lifecycle.New(its.Namespace, clusterName, its.Labels[constant.KBAppComponentLabelKey], lifecycleActions, templateVars, pod)
337337
if err != nil {
338338
return err
339339
}

0 commit comments

Comments
 (0)