Skip to content

Commit

Permalink
use sds routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaed Parkar committed Sep 19, 2023
1 parent 1ea54f6 commit 40ab759
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions AdminWebsite/AdminWebsite/Health/HealthCheckExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ public static IServiceCollection AddVhHealthChecks(this IServiceCollection servi
.AddUrlGroup(
new Uri(
new Uri(servicesConfiguration.VideoApiUrl),
"/healthcheck/health"),
"/health/health"),
name: "Video API",
failureStatus: HealthStatus.Unhealthy,
tags: new[] {"startup", "readiness"})
.AddUrlGroup(
new Uri(
new Uri(servicesConfiguration.BookingsApiUrl),
"/healthcheck/health"),
"/health/health"),
name: "Bookings API",
failureStatus: HealthStatus.Unhealthy,
tags: new[] {"startup", "readiness"})
.AddUrlGroup(
new Uri(
new Uri(servicesConfiguration.UserApiUrl),
"/healthcheck/health"),
"/health/health"),
name: "User API",
failureStatus: HealthStatus.Unhealthy,
tags: new[] {"startup", "readiness"});
Expand All @@ -47,19 +47,19 @@ public static IServiceCollection AddVhHealthChecks(this IServiceCollection servi

public static IEndpointRouteBuilder AddVhHealthCheckRouteMaps(this IEndpointRouteBuilder endpoints)
{
endpoints.MapHealthChecks("/healthcheck/liveness", new HealthCheckOptions()
endpoints.MapHealthChecks("/health/liveness", new HealthCheckOptions()
{
Predicate = check => check.Tags.Contains("self"),
ResponseWriter = HealthCheckResponseWriter
});

endpoints.MapHealthChecks("/healthcheck/startup", new HealthCheckOptions()
endpoints.MapHealthChecks("/health/startup", new HealthCheckOptions()
{
Predicate = check => check.Tags.Contains("startup"),
ResponseWriter = HealthCheckResponseWriter
});

endpoints.MapHealthChecks("/healthcheck/readiness", new HealthCheckOptions()
endpoints.MapHealthChecks("/health/readiness", new HealthCheckOptions()
{
Predicate = check => check.Tags.Contains("readiness"),
ResponseWriter = HealthCheckResponseWriter
Expand Down
5 changes: 2 additions & 3 deletions charts/vh-admin-web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ java:
replicas: 2
ingressHost: vh-admin-web.{{ .Values.global.environment }}.platform.hmcts.net
releaseNameOverride: vh-admin-web
readinessPath: /health/liveness
livenessPath: /health/liveness
livenessDelay: 360
livenessPeriod: 120
readinessPath: /health/readiness
startupPath: /health/startup
aadIdentityName: vh-aad-identity
keyVaults:
vh-infra-core:
Expand Down

0 comments on commit 40ab759

Please sign in to comment.