Skip to content

Commit

Permalink
Default deploymentType should be StatefulSet (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
live-wire authored Jun 3, 2022
1 parent dfad3ef commit 9f50d91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/flinkcluster/flinkcluster_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ func getDesiredClusterState(observed *ObservedClusterState) *model.DesiredCluste
state.JmStatefulSet = newJobManagerStatefulSet(cluster)
}

if cluster.Spec.TaskManager.DeploymentType == v1beta1.DeploymentTypeStatefulSet {
deploymentType := cluster.Spec.TaskManager.DeploymentType
if deploymentType == v1beta1.DeploymentTypeStatefulSet || deploymentType == "" {
if !shouldCleanup(cluster, "TaskManagerStatefulSet") {
state.TmStatefulSet = newTaskManagerStatefulSet(cluster)
}
Expand Down

0 comments on commit 9f50d91

Please sign in to comment.