From 0c6f7dbee1381f13fe20eae7a779958bd9ff0056 Mon Sep 17 00:00:00 2001 From: James Wynn Date: Wed, 26 Oct 2022 10:25:27 -0500 Subject: [PATCH] Cleaned up some variable names --- src/utils/config/service-helpers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index efcab0e5b..d37423be5 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -111,11 +111,11 @@ export async function servicesFromDocker() { function getUrlFromIngress(ingress) { let url = ingress.metadata.annotations['homepage/url']; if(!url) { - const host = ingress.spec.rules[0].host; - const path = ingress.spec.rules[0].http.paths[0].path; - const schema = ingress.spec.tls ? 'https' : 'http'; + const urlHost = ingress.spec.rules[0].host; + const urlPath = ingress.spec.rules[0].http.paths[0].path; + const urlSchema = ingress.spec.tls ? 'https' : 'http'; - url = `${schema}://${host}${path}`; + url = `${urlSchema}://${urlHost}${urlPath}`; } return url; }