Skip to content

Commit e026229

Browse files
authored
Fix cluster state stuck on creating (#26)
1 parent ef47f14 commit e026229

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

controllers/flinkcluster_updater.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,11 @@ func (updater *ClusterStatusUpdater) deriveClusterStatus(
404404
switch recorded.State {
405405
case "", v1beta1.ClusterStateCreating:
406406
if runningComponents < totalComponents {
407-
status.State = v1beta1.ClusterStateCreating
407+
if runningComponents == 0 {
408+
status.State = v1beta1.ClusterStateStopped
409+
} else {
410+
status.State = v1beta1.ClusterStateCreating
411+
}
408412
} else {
409413
status.State = v1beta1.ClusterStateRunning
410414
}

0 commit comments

Comments
 (0)