Skip to content

Commit 0e015dd

Browse files
Merge pull request #371 from dinhxuanvu/startupProbe-4.9
OCPBUGS-459: fix(grpc): Add startupProbe to check for grpc health readiness (#2791)
2 parents 0a0de85 + f037937 commit 0e015dd

File tree

2 files changed

+18
-0
lines changed
  • staging/operator-lifecycle-manager/pkg/controller/registry/reconciler
  • vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/reconciler

2 files changed

+18
-0
lines changed

staging/operator-lifecycle-manager/pkg/controller/registry/reconciler/reconciler.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@ func Pod(source *v1alpha1.CatalogSource, name string, image string, saName strin
149149
InitialDelaySeconds: livenessDelay,
150150
TimeoutSeconds: 5,
151151
},
152+
StartupProbe: &v1.Probe{
153+
Handler: v1.Handler{
154+
Exec: &v1.ExecAction{
155+
Command: []string{"grpc_health_probe", "-addr=:50051"},
156+
},
157+
},
158+
FailureThreshold: 15,
159+
PeriodSeconds: 10,
160+
},
152161
Resources: v1.ResourceRequirements{
153162
Requests: v1.ResourceList{
154163
v1.ResourceCPU: resource.MustParse("10m"),

vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/reconciler/reconciler.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)