Skip to content

Commit

Permalink
Update k8s library to v0.24.1 (#454)
Browse files Browse the repository at this point in the history
* Bump k8s deps


Co-authored-by: Barna Kutassy <[email protected]>
  • Loading branch information
Barnabas Kutassy and Barna Kutassy authored Aug 24, 2022
1 parent b3e0159 commit b5bcff3
Show file tree
Hide file tree
Showing 7 changed files with 594 additions and 130 deletions.
8 changes: 4 additions & 4 deletions apis/flinkcluster/v1beta1/flinkcluster_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func _SetJobManagerDefault(jmSpec *JobManagerSpec, flinkVersion *version.Version
}

var livenessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(*jmSpec.Ports.RPC)),
},
Expand All @@ -150,7 +150,7 @@ func _SetJobManagerDefault(jmSpec *JobManagerSpec, flinkVersion *version.Version
jmSpec.LivenessProbe = &livenessProbe

var readinessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(*jmSpec.Ports.RPC)),
},
Expand Down Expand Up @@ -205,7 +205,7 @@ func _SetTaskManagerDefault(tmSpec *TaskManagerSpec, flinkVersion *version.Versi
}

var livenessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(*tmSpec.Ports.RPC)),
},
Expand All @@ -221,7 +221,7 @@ func _SetTaskManagerDefault(tmSpec *TaskManagerSpec, flinkVersion *version.Versi
tmSpec.LivenessProbe = &livenessProbe

var readinessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(*tmSpec.Ports.RPC)),
},
Expand Down
20 changes: 10 additions & 10 deletions apis/flinkcluster/v1beta1/flinkcluster_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestSetDefault(t *testing.T) {
resources := DefaultResources
tmReplicas := int32(DefaultTaskManagerReplicas)
var defaultJmReadinessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(defaultJmRPCPort)),
},
Expand All @@ -72,7 +72,7 @@ func TestSetDefault(t *testing.T) {
FailureThreshold: 60,
}
var defaultJmLivenessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(defaultJmRPCPort)),
},
Expand All @@ -83,7 +83,7 @@ func TestSetDefault(t *testing.T) {
FailureThreshold: 5,
}
var defaultTmReadinessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(defaultTmRPCPort)),
},
Expand All @@ -94,7 +94,7 @@ func TestSetDefault(t *testing.T) {
FailureThreshold: 60,
}
var defaultTmLivenessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(defaultTmRPCPort)),
},
Expand Down Expand Up @@ -220,7 +220,7 @@ func TestSetNonDefault(t *testing.T) {
}
tmReplicas := int32(DefaultTaskManagerReplicas)
var jmReadinessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(jmRPCPort)),
},
Expand All @@ -230,7 +230,7 @@ func TestSetNonDefault(t *testing.T) {
FailureThreshold: 600,
}
var jmLivenessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(jmRPCPort)),
},
Expand All @@ -240,7 +240,7 @@ func TestSetNonDefault(t *testing.T) {
FailureThreshold: 50,
}
var tmReadinessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(tmRPCPort)),
},
Expand All @@ -251,7 +251,7 @@ func TestSetNonDefault(t *testing.T) {
FailureThreshold: 600,
}
var tmLivenessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(tmRPCPort)),
},
Expand Down Expand Up @@ -330,7 +330,7 @@ func TestSetNonDefault(t *testing.T) {
_SetDefault(&cluster)

var jmExpectedReadinessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(jmRPCPort)),
},
Expand All @@ -341,7 +341,7 @@ func TestSetNonDefault(t *testing.T) {
FailureThreshold: 600,
}
var jmExpectedLivenessProbe = corev1.Probe{
Handler: corev1.Handler{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.FromInt(int(jmRPCPort)),
},
Expand Down
Loading

0 comments on commit b5bcff3

Please sign in to comment.