Skip to content

Commit

Permalink
Merge pull request #159 from securesign/health_check-pick
Browse files Browse the repository at this point in the history
Update /healthz probe to use localhost for gRPC readiness checks
  • Loading branch information
openshift-merge-bot[bot] authored Jul 29, 2024
2 parents 8cd32ce + dafb7f1 commit 3c98ae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/app/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func createHTTPServer(ctx context.Context, serverEndpoint string, grpcServer, le
} else {
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
}
cc, err := grpc.NewClient(grpcServer.grpcServerEndpoint, opts...)
grpcHealthEndpoint := fmt.Sprintf("localhost:%s", viper.GetString("grpc-port"))
cc, err := grpc.NewClient(grpcHealthEndpoint, opts...)
if err != nil {
log.Logger.Fatal(err)
}
Expand Down

0 comments on commit 3c98ae8

Please sign in to comment.