Quick fix for the fqdn option not working for the dashboards
Change-Id: I36c7c85694fd3fb4ea6cd0b88cbb008dafb0f3b0
This commit is contained in:
parent
e9de7d1988
commit
cc14fa4f99
@ -106,11 +106,11 @@ function addServiceDashboards(json) { // eslint-disable-line no-unused-vars
|
||||
let namespace = cluster.namespaces[j];
|
||||
for (let k = 0; k < namespace.dashboards.length; k++) {
|
||||
let dash = namespace.dashboards[k];
|
||||
let fqdn = "";
|
||||
if (dash.fqdn === undefined) {
|
||||
fqdn = `${dash.hostname}.${cluster.namespaces[j].name}.${cluster.baseFqdn}`
|
||||
let fqdn = null;
|
||||
if (dash.hasOwnProperty("fqdn")) {
|
||||
fqdn = `${dash.fqdn}`;
|
||||
} else {
|
||||
({ fqdn } = dash.fqdn);
|
||||
fqdn = `${dash.hostname}.${cluster.namespaces[j].name}.${cluster.baseFqdn}`;
|
||||
}
|
||||
let url = `${dash.protocol}://${fqdn}:${dash.port}/${dash.path || ""}`;
|
||||
addDashboard("DashDropdown", dash.name, url)
|
||||
|
Loading…
Reference in New Issue
Block a user