From b4cdb032286fc554449c8800ba11e0c3c42186a1 Mon Sep 17 00:00:00 2001 From: James Wynn Date: Thu, 9 Feb 2023 17:09:59 -0600 Subject: [PATCH] Added support for "ping" configuration in kubernetes ingress annotations --- src/utils/config/service-helpers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index e2e3055e0..ddab7fb50 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -168,6 +168,9 @@ export async function servicesFromKubernetes() { if (ingress.metadata.annotations[ANNOTATION_POD_SELECTOR]) { constructedService.podSelector = ingress.metadata.annotations[ANNOTATION_POD_SELECTOR]; } + if (ingress.metadata.annotations[`${ANNOTATION_BASE}/ping`]) { + constructedService.ping = ingress.metadata.annotations[`${ANNOTATION_BASE}/ping`]; + } Object.keys(ingress.metadata.annotations).forEach((annotation) => { if (annotation.startsWith(ANNOTATION_WIDGET_BASE)) { shvl.set(constructedService, annotation.replace(`${ANNOTATION_BASE}/`, ""), ingress.metadata.annotations[annotation]);