Upgrade Kubernetes module to the latest version v0.27.3 (#1677)

This commit is contained in:
payamQorbanpour
2023-07-19 17:23:37 +01:00
committed by GitHub
parent 317ba2922e
commit 554a0ea31e
3 changed files with 21 additions and 89 deletions
+3 -3
View File
@@ -286,20 +286,20 @@ func configProbe(healthCheck kobject.HealthCheck) *api.Probe {
}
if len(healthCheck.Test) > 0 {
probe.Handler = api.Handler{
probe.ProbeHandler = api.ProbeHandler{
Exec: &api.ExecAction{
Command: healthCheck.Test,
},
}
} else if !reflect.ValueOf(healthCheck.HTTPPath).IsZero() && !reflect.ValueOf(healthCheck.HTTPPort).IsZero() {
probe.Handler = api.Handler{
probe.ProbeHandler = api.ProbeHandler{
HTTPGet: &api.HTTPGetAction{
Path: healthCheck.HTTPPath,
Port: intstr.FromInt(int(healthCheck.HTTPPort)),
},
}
} else if !reflect.ValueOf(healthCheck.TCPPort).IsZero() {
probe.Handler = api.Handler{
probe.ProbeHandler = api.ProbeHandler{
TCPSocket: &api.TCPSocketAction{
Port: intstr.FromInt(int(healthCheck.TCPPort)),
},