From 4e2adda249afdbfeacc60fc715f25e4a9237a1bc Mon Sep 17 00:00:00 2001 From: FOSSES Benjamin <8834448+bfo2ses@users.noreply.github.com> Date: Mon, 28 Mar 2022 08:54:33 +0200 Subject: [PATCH] fix: monitorProbes bug the conf for monitorProbes use HealthPlugin as key instead of pkg.name. So readiness route and liveness route are always monitored --- src/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index f02188e..a02076e 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -175,7 +175,7 @@ export const HealthPlugin: Plugin> = { path: config.livenessRoute, options: { plugins: { - HealthPlugin: monitorProbes + [pkg.name]: monitorProbes }, auth: getAuth(config, 'liveness') }, @@ -195,7 +195,7 @@ export const HealthPlugin: Plugin> = { path: config.readinessRoute, options: { plugins: { - HealthPlugin: monitorProbes + [pkg.name]: monitorProbes }, auth: getAuth(config, 'readiness') },