@@ -53,10 +53,10 @@ return _.get(e, "metadata.name");
53
53
return _.get(e, "metadata.uid");
54
54
}, G = function() {
55
55
return _.size(P.deploymentConfigs) + _.size(P.vanillaReplicationControllers) + _.size(P.deployments) + _.size(P.vanillaReplicaSets) + _.size(P.statefulSets) + _.size(P.monopods) + _.size(P.state.serviceInstances);
56
- }, W = function() {
57
- return _.size(P.filteredDeploymentConfigs) + _.size(P.filteredReplicationControllers) + _.size(P.filteredDeployments) + _.size(P.filteredReplicaSets) + _.size(P.filteredStatefulSets) + _.size(P.filteredMonopods) + _.size(P.filteredServiceInstances);
58
56
}, K = function() {
59
- P.size = G(), P.filteredSize = W();
57
+ return _.size(P.filteredDeploymentConfigs) + _.size(P.filteredReplicationControllers) + _.size(P.filteredDeployments) + _.size(P.filteredReplicaSets) + _.size(P.filteredStatefulSets) + _.size(P.filteredMonopods) + _.size(P.filteredServiceInstances);
58
+ }, W = function() {
59
+ P.size = G(), P.filteredSize = K();
60
60
var e = 0 === P.size, t = P.deploymentConfigs && P.replicationControllers && P.deployments && P.replicaSets && P.statefulSets && P.pods && P.state.serviceInstances;
61
61
V.expandAll = t && 1 === P.size, P.showGetStarted = t && e, P.showLoading = !t && e, P.everythingFiltered = !e && !P.filteredSize, P.hidePipelineOtherResources = "pipeline" === P.viewBy && (P.filterActive || _.isEmpty(P.pipelineBuildConfigs));
62
62
}, Q = function(e) {
@@ -119,7 +119,7 @@ case "name":
119
119
return !_.isEmpty(V.filterKeywords);
120
120
}
121
121
}, ie = function() {
122
- P.filteredDeploymentConfigs = re(P.deploymentConfigs), P.filteredReplicationControllers = re(P.vanillaReplicationControllers), P.filteredDeployments = re(P.deployments), P.filteredReplicaSets = re(P.vanillaReplicaSets), P.filteredStatefulSets = re(P.statefulSets), P.filteredMonopods = re(P.monopods), P.filteredPipelineBuildConfigs = re(P.pipelineBuildConfigs), P.filteredServiceInstances = re(V.orderedServiceInstances), P.filterActive = oe(), Z(), K ();
122
+ P.filteredDeploymentConfigs = re(P.deploymentConfigs), P.filteredReplicationControllers = re(P.vanillaReplicationControllers), P.filteredDeployments = re(P.deployments), P.filteredReplicaSets = re(P.vanillaReplicaSets), P.filteredStatefulSets = re(P.statefulSets), P.filteredMonopods = re(P.monopods), P.filteredPipelineBuildConfigs = re(P.pipelineBuildConfigs), P.filteredServiceInstances = re(V.orderedServiceInstances), P.filterActive = oe(), Z(), W ();
123
123
}, se = n.project + "/overview/view-by";
124
124
P.viewBy = localStorage.getItem(se) || "app", e.$watch(function() {
125
125
return P.viewBy;
@@ -315,7 +315,7 @@ _.isEmpty(o) || (t = t.concat(o));
315
315
qe(), ze();
316
316
}, Ge = function() {
317
317
_.each(P.deploymentConfigs, Me);
318
- }, We = function() {
318
+ }, Ke = function() {
319
319
if (V.builds && P.buildConfigs) {
320
320
P.recentPipelinesByBuildConfig = {}, V.recentBuildsByBuildConfig = {}, V.recentPipelinesByDeploymentConfig = {};
321
321
var e = {};
@@ -330,7 +330,7 @@ return i.sortBuilds(e, !0);
330
330
return i.sortBuilds(e, !0);
331
331
}), Ge();
332
332
}
333
- }, Ke = function() {
333
+ }, We = function() {
334
334
k.setQuotaNotifications(V.quotas, V.clusterQuotas, n.project);
335
335
};
336
336
P.clearFilter = function() {
@@ -395,7 +395,7 @@ resource: "deployments"
395
395
}, a, function(e) {
396
396
I = e.by("metadata.uid"), P.deployments = _.sortBy(I, "metadata.name"), Ee(), Ae(P.deployments), Ae(P.vanillaReplicaSets), we(P.deployments), Qe(), ie(), h.log("deployments (subscribe)", P.deploymentsByUID);
397
397
})), Ye.push(l.watch("builds", a, function(e) {
398
- V.builds = e.by("metadata.name"), We (), h.log("builds (subscribe)", V.builds);
398
+ V.builds = e.by("metadata.name"), Ke (), h.log("builds (subscribe)", V.builds);
399
399
})), Ye.push(l.watch({
400
400
group: "apps",
401
401
resource: "statefulsets"
@@ -415,7 +415,7 @@ P.routes = e.by("metadata.name"), Be(), h.log("routes (subscribe)", P.routes);
415
415
poll: R,
416
416
pollInterval: 6e4
417
417
})), Ye.push(l.watch("buildConfigs", a, function(e) {
418
- P.buildConfigs = e.by("metadata.name"), Fe(), He(), We (), ie(), h.log("buildconfigs (subscribe)", P.buildConfigs);
418
+ P.buildConfigs = e.by("metadata.name"), Fe(), He(), Ke (), ie(), h.log("buildconfigs (subscribe)", P.buildConfigs);
419
419
}, {
420
420
poll: R,
421
421
pollInterval: 6e4
@@ -434,12 +434,12 @@ T = e.by("metadata.name"), m.buildDockerRefMapForImageStreams(T, V.imageStreamIm
434
434
poll: R,
435
435
pollInterval: 6e4
436
436
})), Ye.push(l.watch("resourcequotas", a, function(e) {
437
- V.quotas = e.by("metadata.name"), Ke ();
437
+ V.quotas = e.by("metadata.name"), We ();
438
438
}, {
439
439
poll: !0,
440
440
pollInterval: 6e4
441
441
})), Ye.push(l.watch("appliedclusterresourcequotas", a, function(e) {
442
- V.clusterQuotas = e.by("metadata.name"), Ke ();
442
+ V.clusterQuotas = e.by("metadata.name"), We ();
443
443
}, {
444
444
poll: !0,
445
445
pollInterval: 6e4
@@ -10835,7 +10835,7 @@ templateUrl: "views/directives/action-chip.html"
10835
10835
}), function() {
10836
10836
angular.module("openshiftConsole").component("addConfigToApplication", {
10837
10837
controller: [ "$filter", "$scope", "APIService", "ApplicationsService", "DataService", "Navigate", "NotificationsService", "StorageService", function(e, t, n, a, r, o, i, s) {
10838
- var c = this, l = function() {
10838
+ var c = this, l = e("humanizeKind"), u = function() {
10839
10839
var e = {
10840
10840
namespace: c.project.metadata.name
10841
10841
};
@@ -10844,13 +10844,13 @@ c.applications = e, c.updating = !1;
10844
10844
});
10845
10845
};
10846
10846
c.$onInit = function() {
10847
- c.addType = "env", c.disableInputs = !1, l ();
10847
+ c.addType = "env", c.disableInputs = !1, u ();
10848
10848
var e = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");
10849
10849
c.hasInvalidEnvVars = _.some(c.apiObject.data, function(t, n) {
10850
10850
return !e.test(n);
10851
10851
});
10852
10852
};
10853
- var u = function(e) {
10853
+ var d = function(e) {
10854
10854
return c.attachAllContainers || c.attachContainers[e.name];
10855
10855
};
10856
10856
c.$postLink = function() {
@@ -10860,6 +10860,8 @@ return c.application;
10860
10860
var e = _.get(c.application, "spec.template");
10861
10861
c.existingMountPaths = s.getMountPaths(e), c.attachAllContainers = !0;
10862
10862
});
10863
+ }, c.groupByKind = function(e) {
10864
+ return l(e.kind);
10863
10865
}, c.addToApplication = function() {
10864
10866
var t = angular.copy(c.application), a = _.get(t, "spec.template");
10865
10867
if (c.disableInputs = !0, "env" === c.addType) {
@@ -10877,16 +10879,16 @@ name: c.apiObject.metadata.name
10877
10879
};
10878
10880
}
10879
10881
_.each(a.spec.containers, function(e) {
10880
- u (e) && (e.envFrom = e.envFrom || [], e.envFrom.push(s));
10882
+ d (e) && (e.envFrom = e.envFrom || [], e.envFrom.push(s));
10881
10883
});
10882
10884
} else {
10883
- var l = e("generateName")(c.apiObject.metadata.name + "-"), d = {
10885
+ var l = e("generateName")(c.apiObject.metadata.name + "-"), u = {
10884
10886
name: l,
10885
10887
mountPath: c.mountVolume,
10886
10888
readOnly: !0
10887
10889
};
10888
10890
_.each(a.spec.containers, function(e) {
10889
- u (e) && (e.volumeMounts = e.volumeMounts || [], e.volumeMounts.push(d ));
10891
+ d (e) && (e.volumeMounts = e.volumeMounts || [], e.volumeMounts.push(u ));
10890
10892
});
10891
10893
var p = {
10892
10894
name: l
0 commit comments