Merge "Quick fix for the fqdn option not working for the dashboards"
This commit is contained in:
commit
819964eafd
@ -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