Skip to content

Commit

Permalink
Fix cluster state stuck on creating (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas committed Apr 28, 2021
1 parent ef47f14 commit e026229
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controllers/flinkcluster_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,11 @@ func (updater *ClusterStatusUpdater) deriveClusterStatus(
switch recorded.State {
case "", v1beta1.ClusterStateCreating:
if runningComponents < totalComponents {
status.State = v1beta1.ClusterStateCreating
if runningComponents == 0 {
status.State = v1beta1.ClusterStateStopped
} else {
status.State = v1beta1.ClusterStateCreating
}
} else {
status.State = v1beta1.ClusterStateRunning
}
Expand Down

0 comments on commit e026229

Please sign in to comment.