Skip to content
Snippets Groups Projects
Commit 6b303389 authored by richard.petersen's avatar richard.petersen :sailboat:
Browse files

Reintroduce a dummy healthy endpoint for compatibility with old helm charts

parent afbede2e
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ const checkLatestVersion = once(async function () {
logger.info(`[Health] Check latest version on startup. Time since startup: ${timeSinceStartup()}`)
})
async function healthy () {}
async function live () {}
async function ready () {
......@@ -37,6 +39,11 @@ export default async function healthPlugin (fastify, options) {
}
})
// TODO can be removed. is for compatibility with older helm charts
fastify.get('/healthy', async (req, reply) => {
await fastify.probe(reply, healthy)
})
fastify.get('/live', async (req, reply) => {
await fastify.probe(reply, live)
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment