From 734fe397b83b8095604014c5da11be0d17a29421 Mon Sep 17 00:00:00 2001 From: wangyelei Date: Fri, 6 Dec 2024 15:18:41 +0800 Subject: [PATCH] fix: cluster phase are empty in long time --- controllers/apps/transformer_cluster_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/apps/transformer_cluster_status.go b/controllers/apps/transformer_cluster_status.go index 766ebfadf1b..7646e3d0f4e 100644 --- a/controllers/apps/transformer_cluster_status.go +++ b/controllers/apps/transformer_cluster_status.go @@ -143,7 +143,7 @@ func composeClusterPhase(statusList []appsv1.ClusterComponentStatus) appsv1.Clus } for _, status := range statusList { phase := status.Phase - if !isPhaseIn(phase, appsv1.CreatingComponentPhase) { + if !isPhaseIn(phase, appsv1.CreatingComponentPhase, "") { isAllComponentCreating = false } if !isPhaseIn(phase, appsv1.RunningComponentPhase, appsv1.StoppedComponentPhase) {