Skip to content

Commit

Permalink
Added support for "ping" configuration in kubernetes ingress annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswynn committed Feb 9, 2023
1 parent 0de2788 commit b4cdb03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/config/service-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit b4cdb03

Please sign in to comment.