@@ -5389,43 +5389,50 @@ return !_.isEmpty(d);
5389
5389
}, ea = function(a, b) {
5390
5390
var d = r[b];
5391
5391
ba[b] = d, c.childServicesByParent[a] = c.childServicesByParent[a] || [], c.childServicesByParent[a].push(d);
5392
- }, fa = function() {
5392
+ }, fa = {};
5393
+ c.isDuplicateApp = function(a) {
5394
+ return _.size(fa[a]) > 1;
5395
+ };
5396
+ var ga = function() {
5393
5397
r && q && (c.services = r, ba = {}, c.childServicesByParent = {}, _.each(r, function(a, b) {
5394
5398
var c = m.getDependentServices(a);
5395
5399
_.each(c, function(a) {
5396
5400
ea(b, a);
5397
5401
});
5398
- }), c.topLevelServices = _.chain(r).filter(function(a) {
5402
+ }), fa = {}, c.topLevelServices = _.chain(r).filter(function(a) {
5399
5403
return !!da(a) || (!!M(a) || !ca(a) && !N(a));
5400
- }).sortByAll([ "metadata.labels.app", "metadata.name" ]).value());
5401
- }, ga = function() {
5404
+ }).sortByAll([ "metadata.labels.app", "metadata.name" ]).value(), _.each(c.topLevelServices, function(a) {
5405
+ var b = _.get(a, "metadata.labels.app");
5406
+ b && _.set(fa, [ b, a.metadata.name ], a);
5407
+ }));
5408
+ }, ha = function() {
5402
5409
r && q && (c.routeWarningsByService = {}, _.each(r, function(a) {
5403
5410
_.each(c.routesByService[a.metadata.name], function(b) {
5404
5411
var d = l.getRouteWarnings(b, a);
5405
5412
_.set(c, [ "routeWarningsByService", a.metadata.name, b.metadata.name ], d);
5406
5413
});
5407
5414
}));
5408
- }, ha = function(a) {
5415
+ }, ia = function(a) {
5409
5416
var b = H(_.get(a, "spec.output.to"), a.metadata.namespace);
5410
5417
c.recentBuildsByOutputImage[b] = c.recentBuildsByOutputImage[b] || [], c.recentBuildsByOutputImage[b].push(a);
5411
- }, ia = a("buildConfigForBuild"), ja = function(a) {
5418
+ }, ja = a("buildConfigForBuild"), ka = function(a) {
5412
5419
if (z) {
5413
- var b = ia (a), d = z[b];
5420
+ var b = ja (a), d = z[b];
5414
5421
if (d) {
5415
5422
var f = e.usesDeploymentConfigs(d);
5416
5423
_.each(f, function(b) {
5417
5424
c.recentPipelinesByDC[b] = c.recentPipelinesByDC[b] || [], c.recentPipelinesByDC[b].push(a);
5418
5425
});
5419
5426
}
5420
5427
}
5421
- }, ka = function() {
5428
+ }, la = function() {
5422
5429
A && (c.recentPipelinesByDC = {}, c.recentBuildsByOutputImage = {}, _.each(e.interestingBuilds(A), function(a) {
5423
- return E(a) ? void ja (a) :void ha (a);
5430
+ return E(a) ? void ka (a) :void ia (a);
5424
5431
}));
5425
- }, la = function() {
5432
+ }, ma = function() {
5426
5433
var a = _.isEmpty(r) && _.isEmpty(t) && _.isEmpty(c.monopodsByService) && _.isEmpty(u) && _.isEmpty(w) && _.isEmpty(x), b = r && y && u && w && x;
5427
5434
c.renderOptions.showGetStarted = b && a, c.renderOptions.showLoading = !b && a;
5428
- }, ma = function() {
5435
+ }, na = function() {
5429
5436
var a = d.isAlertPermanentlyHidden("overview-quota-limit-reached", c.projectName);
5430
5437
if (!a && p.isAnyQuotaExceeded(c.quotas, c.clusterQuotas)) {
5431
5438
if (c.alerts.quotaExceeded) return;
@@ -5464,11 +5471,11 @@ var b = _.get(c, [ a, "" ], {});
5464
5471
return !_.isEmpty(b);
5465
5472
});
5466
5473
};
5467
- var na = [];
5474
+ var oa = [];
5468
5475
c.getHPA = function(a) {
5469
5476
if (!B) return null;
5470
5477
var b = _.get(a, "kind"), c = _.get(a, "metadata.name");
5471
- return _.get(C, [ b, c ], na );
5478
+ return _.get(C, [ b, c ], oa );
5472
5479
}, window.OPENSHIFT_CONSTANTS.DISABLE_OVERVIEW_METRICS || (o.isAvailable(!0).then(function(a) {
5473
5480
c.showMetrics = a;
5474
5481
}), c.$on("metrics-connection-failed", function(a, b) {
@@ -5489,64 +5496,64 @@ return d.permanentlyHideAlert("metrics-connection-failed"), !0;
5489
5496
} ]
5490
5497
});
5491
5498
}));
5492
- var oa = a("isIE")() || a("isEdge")();
5499
+ var pa = a("isIE")() || a("isEdge")();
5493
5500
k.get(b.project).then(_.spread(function(a, b) {
5494
5501
c.project = a, c.projectContext = b, D.push(f.watch("pods", b, function(a) {
5495
- y = a.by("metadata.name"), aa(), la (), i.log("pods", y);
5502
+ y = a.by("metadata.name"), aa(), ma (), i.log("pods", y);
5496
5503
})), D.push(f.watch("services", b, function(a) {
5497
- c.services = r = a.by("metadata.name"), fa (), aa(), P(), U(), T(), V(), Y(), ga (), la (), i.log("services (subscribe)", r);
5504
+ c.services = r = a.by("metadata.name"), ga (), aa(), P(), U(), T(), V(), Y(), ha (), ma (), i.log("services (subscribe)", r);
5498
5505
}, {
5499
- poll:oa ,
5506
+ poll:pa ,
5500
5507
pollInterval:6e4
5501
5508
})), D.push(f.watch("builds", b, function(a) {
5502
- A = a.by("metadata.name"), ka (), la (), i.log("builds (subscribe)", A);
5509
+ A = a.by("metadata.name"), la (), ma (), i.log("builds (subscribe)", A);
5503
5510
})), D.push(f.watch("buildConfigs", b, function(a) {
5504
- z = a.by("metadata.name"), ka (), i.log("builds (subscribe)", A);
5511
+ z = a.by("metadata.name"), la (), i.log("builds (subscribe)", A);
5505
5512
}, {
5506
- poll:oa ,
5513
+ poll:pa ,
5507
5514
pollInterval:6e4
5508
5515
})), D.push(f.watch("routes", b, function(a) {
5509
- q = a.by("metadata.name"), O(), fa (), ga (), i.log("routes (subscribe)", c.routesByService);
5516
+ q = a.by("metadata.name"), O(), ga (), ha (), i.log("routes (subscribe)", c.routesByService);
5510
5517
}, {
5511
- poll:oa ,
5518
+ poll:pa ,
5512
5519
pollInterval:6e4
5513
5520
})), D.push(f.watch("replicationcontrollers", b, function(a) {
5514
- c.replicationControllersByName = u = a.by("metadata.name"), U(), T(), aa(), ka (), la (), i.log("replicationcontrollers (subscribe)", u);
5521
+ c.replicationControllersByName = u = a.by("metadata.name"), U(), T(), aa(), la (), ma (), i.log("replicationcontrollers (subscribe)", u);
5515
5522
})), D.push(f.watch("deploymentconfigs", b, function(a) {
5516
- t = a.by("metadata.name"), P(), T(), la (), i.log("deploymentconfigs (subscribe)", t);
5523
+ t = a.by("metadata.name"), P(), T(), ma (), i.log("deploymentconfigs (subscribe)", t);
5517
5524
})), D.push(f.watch({
5518
5525
group:"extensions",
5519
5526
resource:"replicasets"
5520
5527
}, b, function(a) {
5521
- w = a.by("metadata.name"), aa(), V(), X(), la (), i.log("replicasets (subscribe)", w);
5528
+ w = a.by("metadata.name"), aa(), V(), X(), ma (), i.log("replicasets (subscribe)", w);
5522
5529
})), D.push(f.watch({
5523
5530
group:"apps",
5524
5531
resource:"petsets"
5525
5532
}, b, function(a) {
5526
- x = a.by("metadata.name"), aa(), Y(), la (), i.log("petsets (subscribe)", x);
5533
+ x = a.by("metadata.name"), aa(), Y(), ma (), i.log("petsets (subscribe)", x);
5527
5534
}, {
5528
- poll:oa ,
5535
+ poll:pa ,
5529
5536
pollInterval:6e4
5530
5537
})), D.push(f.watch({
5531
5538
group:"extensions",
5532
5539
resource:"deployments"
5533
5540
}, b, function(a) {
5534
- s = a.by("metadata.name"), Q(), X(), la (), i.log("deployments (subscribe)", s);
5541
+ s = a.by("metadata.name"), Q(), X(), ma (), i.log("deployments (subscribe)", s);
5535
5542
})), D.push(f.watch({
5536
5543
group:"extensions",
5537
5544
resource:"horizontalpodautoscalers"
5538
5545
}, b, function(a) {
5539
5546
B = a.by("metadata.name"), Z();
5540
5547
}, {
5541
- poll:oa ,
5548
+ poll:pa ,
5542
5549
pollInterval:6e4
5543
5550
})), D.push(f.watch("resourcequotas", b, function(a) {
5544
- c.quotas = a.by("metadata.name"), ma ();
5551
+ c.quotas = a.by("metadata.name"), na ();
5545
5552
}, {
5546
5553
poll:!0,
5547
5554
pollInterval:6e4
5548
5555
})), D.push(f.watch("appliedclusterresourcequotas", b, function(a) {
5549
- c.clusterQuotas = a.by("metadata.name"), ma ();
5556
+ c.clusterQuotas = a.by("metadata.name"), na ();
5550
5557
}, {
5551
5558
poll:!0,
5552
5559
pollInterval:6e4
@@ -24536,6 +24543,9 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
24536
24543
"<i class=\"fa fa-angle-down fa-fw\" aria-hidden=\"true\" ng-if=\"!collapse\"></i>\n" +
24537
24544
"<i class=\"fa fa-angle-right fa-fw\" aria-hidden=\"true\" ng-if=\"collapse\"></i>\n" +
24538
24545
"{{appName | startCase}}\n" +
24546
+ "<span ng-if=\"isDuplicateApp(appName)\" class=\"small\">\n" +
24547
+ "{{service.metadata.name}}\n" +
24548
+ "</span>\n" +
24539
24549
"</h2>\n" +
24540
24550
"<h3 class=\"route-title truncate\">\n" +
24541
24551
"<span ng-if=\"appName && (displayRoute | isWebRoute)\">\n" +
0 commit comments