|
|
@ -198,6 +198,7 @@ export async function servicesFromKubernetes() {
|
|
|
|
.then((response) => response.body)
|
|
|
|
.then((response) => response.body)
|
|
|
|
.catch((error) => {
|
|
|
|
.catch((error) => {
|
|
|
|
logger.error("Error getting ingresses: %d %s %s", error.statusCode, error.body, error.response);
|
|
|
|
logger.error("Error getting ingresses: %d %s %s", error.statusCode, error.body, error.response);
|
|
|
|
|
|
|
|
logger.debug(error);
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -215,6 +216,7 @@ export async function servicesFromKubernetes() {
|
|
|
|
error.body,
|
|
|
|
error.body,
|
|
|
|
error.response,
|
|
|
|
error.response,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
logger.debug(error);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return [];
|
|
|
|
return [];
|
|
|
@ -231,6 +233,7 @@ export async function servicesFromKubernetes() {
|
|
|
|
error.body,
|
|
|
|
error.body,
|
|
|
|
error.response,
|
|
|
|
error.response,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
logger.debug(error);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return [];
|
|
|
|
return [];
|
|
|
@ -300,6 +303,7 @@ export async function servicesFromKubernetes() {
|
|
|
|
constructedService = JSON.parse(substituteEnvironmentVars(JSON.stringify(constructedService)));
|
|
|
|
constructedService = JSON.parse(substituteEnvironmentVars(JSON.stringify(constructedService)));
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
logger.error("Error attempting k8s environment variable substitution.");
|
|
|
|
logger.error("Error attempting k8s environment variable substitution.");
|
|
|
|
|
|
|
|
logger.debug(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return constructedService;
|
|
|
|
return constructedService;
|
|
|
|