Skip to content

Commit

Permalink
Fixed failing tests and release-manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
live-wire committed Jun 1, 2022
1 parent aad80e7 commit 9fef96b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3932,6 +3932,8 @@ spec:
type: string
taskManager:
properties:
deploymentType:
type: string
extraPorts:
items:
properties:
Expand Down Expand Up @@ -5324,8 +5326,6 @@ spec:
- name
type: object
type: array
storageType:
type: string
tolerations:
items:
properties:
Expand Down
2 changes: 1 addition & 1 deletion controllers/flinkcluster/flinkcluster_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ func (updater *ClusterStatusUpdater) deriveClusterStatus(
var observedTmState runtime.Object
var tmStatusName string
var tmStatusState string
if observed.cluster.Spec.TaskManager.DeploymentType == v1beta1.DeploymentTypeStatefulset {
if cluster.Spec.TaskManager.DeploymentType == v1beta1.DeploymentTypeStatefulset {
observedTmStatefulSet := observed.tmStatefulSet
observedTmState = observedTmStatefulSet
tmStatusName = observedTmStatefulSet.Name
Expand Down
2 changes: 1 addition & 1 deletion controllers/flinkcluster/flinkcluster_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestClusterStatus(t *testing.T) {
}

var updater = &ClusterStatusUpdater{log: log.Log, observed: observed}
cluster := v1beta1.FlinkCluster{Status: oldStatus}
cluster := v1beta1.FlinkCluster{Status: oldStatus, Spec: v1beta1.FlinkClusterSpec{TaskManager: &v1beta1.TaskManagerSpec{DeploymentType: v1beta1.DeploymentTypeStatefulset}}}
newStatus := updater.deriveClusterStatus(&cluster, &observed)
assert.Assert(t, updater.isStatusChanged(oldStatus, newStatus))
assert.Equal(t, newStatus.State, v1beta1.ClusterStateRunning)
Expand Down

0 comments on commit 9fef96b

Please sign in to comment.