Skip to content

Commit

Permalink
remove readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun committed Oct 28, 2022
1 parent cccfb62 commit a348f68
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions controllers/dbaas/lifecycle_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1247,14 +1247,14 @@ func buildProbeContainers(reqCtx intctrlutil.RequestCtx, params createParams) ([
return nil, err
}
container.Name = "kbprobe-rolechangedcheck"
probe := container.ReadinessProbe
// probe.HTTPGet.Path = "/"
// HACK: hardcoded - "http://localhost:3501/v1.0/bindings/mtest"
// TODO: http port should be checked to avoid conflicts instead of hardcoded 3051
probe.Exec.Command = []string{"curl", "-X", "POST", "-H", "Content-Type: application/json", "http://localhost:3501/v1.0/bindings/mtest", "-d", "{\"operation\": \"roleCheck\", \"metadata\": {\"sql\" : \"\"}}"}
probe.PeriodSeconds = componentProbes.RoleChangedProbe.PeriodSeconds
probe.SuccessThreshold = componentProbes.RoleChangedProbe.SuccessThreshold
probe.FailureThreshold = componentProbes.RoleChangedProbe.FailureThreshold
// probe := container.ReadinessProbe
// // probe.HTTPGet.Path = "/"
// // HACK: hardcoded - "http://localhost:3501/v1.0/bindings/mtest"
// // TODO: http port should be checked to avoid conflicts instead of hardcoded 3051
// probe.Exec.Command = []string{"curl", "-X", "POST", "-H", "Content-Type: application/json", "http://localhost:3501/v1.0/bindings/mtest", "-d", "{\"operation\": \"roleCheck\", \"metadata\": {\"sql\" : \"\"}}"}
// probe.PeriodSeconds = componentProbes.RoleChangedProbe.PeriodSeconds
// probe.SuccessThreshold = componentProbes.RoleChangedProbe.SuccessThreshold
// probe.FailureThreshold = componentProbes.RoleChangedProbe.FailureThreshold
// probe.InitialDelaySeconds = 60
probeContainers = append(probeContainers, container)
}
Expand Down

0 comments on commit a348f68

Please sign in to comment.