Skip to content

Commit

Permalink
undefiend log in function deleteWorkerPods
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <[email protected]>
  • Loading branch information
LiZhenCheng9527 committed Aug 8, 2023
1 parent 0f1d4de commit 740ba3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cluster-operator/customcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ func (r *CustomClusterController) reconcileDelete(ctx context.Context, customClu

// deleteWorkerPods delete all the manage worker pods, including those for initialization, scaling up, scaling down, and other related tasks.
func (r *CustomClusterController) deleteWorkerPods(ctx context.Context, customCluster *v1alpha1.CustomCluster) error {
log := ctrl.LoggerFrom(ctx)

// Delete the init worker.
if err := r.ensureWorkerPodDeleted(ctx, customCluster, CustomClusterInitAction); err != nil {
log.Error(err, "failed to delete init worker", "name", customCluster.Name, "namespace", customCluster.Namespace)
Expand Down

0 comments on commit 740ba3f

Please sign in to comment.