Skip to content

Commit 1330039

Browse files
author
OpenShift Bot
committed
bump(github.com/openshift/origin-web-console): 45e492f2f140fa3742895d10d0b379440cf2d06d
1 parent 751085f commit 1330039

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

pkg/assets/bindata.go

+41-41
Original file line numberDiff line numberDiff line change
@@ -11720,48 +11720,48 @@ restrict:"E",
1172011720
scope:{
1172111721
pods:"=",
1172211722
containers:"=",
11723-
compact:"="
11723+
profile:"@"
1172411724
},
1172511725
templateUrl:function(a, b) {
11726-
return b.compact ? "views/directives/metrics-compact.html" :"views/directives/deployment-metrics.html";
11726+
return "compact" === b.profile ? "views/directives/metrics-compact.html" :"views/directives/deployment-metrics.html";
1172711727
},
1172811728
link:function(b) {
1172911729
function d(a) {
1173011730
return null === a.value || void 0 === a.value;
1173111731
}
1173211732
function f(a) {
11733-
var c;
11734-
c = b.compact ? a.compactDatasetLabel || a.label :"Average Usage";
11735-
var e = {}, f = [ "Date" ], g = [ c ], h = [ f, g ], i = function(a) {
11733+
var b;
11734+
b = w ? a.compactDatasetLabel || a.label :"Average Usage";
11735+
var c = {}, e = [ "Date" ], f = [ b ], g = [ e, f ], h = function(a) {
1173611736
var b = "" + a.start;
11737-
return e[b] || (e[b] = {
11737+
return c[b] || (c[b] = {
1173811738
total:0,
1173911739
count:0
11740-
}), e[b];
11740+
}), c[b];
1174111741
};
11742-
return _.each(z[a.descriptor], function(a) {
11742+
return _.each(A[a.descriptor], function(a) {
1174311743
_.each(a, function(a) {
11744-
var b = i(a);
11745-
(!x || x < a.end) && (x = a.end), d(a) || (b.total += a.value, b.count = b.count + 1);
11744+
var b = h(a);
11745+
(!y || y < a.end) && (y = a.end), d(a) || (b.total += a.value, b.count = b.count + 1);
1174611746
});
11747-
}), _.each(e, function(b, c) {
11747+
}), _.each(c, function(b, c) {
1174811748
var d;
11749-
d = b.count ? b.total / b.count :null, f.push(Number(c)), g.push(a.convert ? a.convert(d) :d);
11750-
}), g.length > 1 && (a.lastValue = _.last(g) || 0), h;
11749+
d = b.count ? b.total / b.count :null, e.push(Number(c)), f.push(a.convert ? a.convert(d) :d);
11750+
}), f.length > 1 && (a.lastValue = _.last(f) || 0), g;
1175111751
}
1175211752
function i(a, c) {
1175311753
var e = [], g = {
1175411754
type:"spline"
1175511755
};
1175611756
return b.showAverage ? (_.each(a[c.descriptor], function(a, b) {
1175711757
p(c.descriptor, b, a);
11758-
}), g.type = "area-spline", b.compact && c.compactType && (g.type = c.compactType), g.x = "Date", g.columns = f(c), g) :(_.each(a[c.descriptor], function(a, b) {
11758+
}), g.type = "area-spline", w && c.compactType && (g.type = c.compactType), g.x = "Date", g.columns = f(c), g) :(_.each(a[c.descriptor], function(a, b) {
1175911759
p(c.descriptor, b, a);
1176011760
var f = b + "-dates";
1176111761
_.set(g, [ "xs", b ], f);
1176211762
var h = [ f ], i = [ b ];
11763-
e.push(h), e.push(i), _.each(z[c.descriptor][b], function(a) {
11764-
if (h.push(a.start), (!x || x < a.end) && (x = a.end), d(a)) i.push(a.value); else {
11763+
e.push(h), e.push(i), _.each(A[c.descriptor][b], function(a) {
11764+
if (h.push(a.start), (!y || y < a.end) && (y = a.end), d(a)) i.push(a.value); else {
1176511765
var b = c.convert ? c.convert(a.value) :a.value;
1176611766
i.push(b);
1176711767
}
@@ -11771,19 +11771,19 @@ return a[0];
1177111771
}), g);
1177211772
}
1177311773
function j(a) {
11774-
w || (b.loaded = !0, b.showAverage = _.size(b.pods) > 5 || b.compact, _.each(b.metrics, function(c) {
11774+
x || (b.loaded = !0, b.showAverage = _.size(b.pods) > 5 || w, _.each(b.metrics, function(c) {
1177511775
var d, e = i(a, c), f = c.descriptor;
11776-
b.compact && c.compactCombineWith && (f = c.compactCombineWith, c.lastValue && (B[f].lastValue = (B[f].lastValue || 0) + c.lastValue)), t[f] ? (t[f].load(e), b.showAverage ? t[f].legend.hide() :t[f].legend.show()) :(d = C(c), d.data = e, t[f] = c3.generate(d));
11776+
w && c.compactCombineWith && (f = c.compactCombineWith, c.lastValue && (C[f].lastValue = (C[f].lastValue || 0) + c.lastValue)), t[f] ? (t[f].load(e), b.showAverage ? t[f].legend.hide() :t[f].legend.show()) :(d = D(c), d.data = e, t[f] = c3.generate(d));
1177711777
}));
1177811778
}
1177911779
function k() {
11780-
return b.compact ? "-15mn" :"-" + b.options.timeRange.value + "mn";
11780+
return w ? "-15mn" :"-" + b.options.timeRange.value + "mn";
1178111781
}
1178211782
function l() {
1178311783
return 60 * b.options.timeRange.value * 1e3;
1178411784
}
1178511785
function m() {
11786-
return b.compact ? "1mn" :Math.floor(l() / v) + "ms";
11786+
return w ? "1mn" :Math.floor(l() / v) + "ms";
1178711787
}
1178811788
function n() {
1178911789
var a = _.find(b.pods, "metadata.namespace");
@@ -11794,7 +11794,7 @@ containerName:b.options.selectedContainer.name,
1179411794
namespace:a.metadata.namespace,
1179511795
bucketDuration:m()
1179611796
};
11797-
return x ? c.start = x :c.start = k(), c;
11797+
return y ? c.start = y :c.start = k(), c;
1179811798
}
1179911799
}
1180011800
function o() {
@@ -11803,10 +11803,10 @@ return a ? (b.loaded = !0, !1) :!b.metricsError;
1180311803
}
1180411804
function p(a, c, d) {
1180511805
b.noData = !1;
11806-
var e = _.initial(d), f = _.get(z, [ a, c ]);
11807-
if (!f) return void _.set(z, [ a, c ], e);
11806+
var e = _.initial(d), f = _.get(A, [ a, c ]);
11807+
if (!f) return void _.set(A, [ a, c ], e);
1180811808
var g = _.takeRight(f.concat(e), v);
11809-
_.set(z, [ a, c ], g);
11809+
_.set(A, [ a, c ], g);
1181011810
}
1181111811
function q(a) {
1181211812
b.loaded = !0, b.metricsError = {
@@ -11815,15 +11815,15 @@ details:_.get(a, "data.errorMsg") || _.get(a, "statusText") || "Status code " +
1181511815
};
1181611816
}
1181711817
function r() {
11818-
if (!A && o()) {
11819-
y = Date.now();
11818+
if (!B && o()) {
11819+
z = Date.now();
1182011820
var a = n();
1182111821
h.getPodMetrics(a).then(j, q);
1182211822
}
1182311823
}
11824-
var s, t = {}, u = 6e4, v = 30, w = !1;
11824+
var s, t = {}, u = 6e4, v = 30, w = "compact" === b.profile, x = !1;
1182511825
b.uniqueID = _.uniqueId("metrics-");
11826-
var x, y, z = {}, A = b.compact;
11826+
var y, z, A = {}, B = w;
1182711827
b.metrics = [ {
1182811828
label:"Memory",
1182911829
units:"MiB",
@@ -11858,7 +11858,7 @@ compactDatasetLabel:"Received",
1185811858
compactType:"spline",
1185911859
chartID:"network-rx-" + b.uniqueID
1186011860
} ];
11861-
var B = _.indexBy(b.metrics, "descriptor");
11861+
var C = _.indexBy(b.metrics, "descriptor");
1186211862
b.loaded = !1, b.noData = !0, h.getMetricsURL().then(function(a) {
1186311863
b.metricsURL = a;
1186411864
}), b.options = {
@@ -11879,12 +11879,12 @@ label:"Last week",
1187911879
value:10080
1188011880
} ]
1188111881
}, b.options.timeRange = _.head(b.options.rangeOptions), b.options.selectedContainer = _.head(b.containers);
11882-
var C = function(a) {
11882+
var D = function(a) {
1188311883
return {
1188411884
bindto:"#" + a.chartID,
1188511885
axis:{
1188611886
x:{
11887-
show:!b.compact,
11887+
show:!w,
1188811888
type:"timeseries",
1188911889
padding:{
1189011890
left:0,
@@ -11896,7 +11896,7 @@ format:"%a %H:%M"
1189611896
}
1189711897
},
1189811898
y:{
11899-
show:!b.compact,
11899+
show:!w,
1190011900
label:a.units,
1190111901
min:0,
1190211902
padding:{
@@ -11912,13 +11912,13 @@ return d3.round(a, 3);
1191211912
}
1191311913
},
1191411914
legend:{
11915-
show:!b.compact && !b.showAverage
11915+
show:!w && !b.showAverage
1191611916
},
1191711917
point:{
1191811918
show:!1
1191911919
},
1192011920
size:{
11921-
height:b.compact ? 35 :175
11921+
height:w ? 35 :175
1192211922
},
1192311923
tooltip:{
1192411924
format:{
@@ -11932,9 +11932,9 @@ return d3.round(b, 2) + " " + a.units;
1193211932
b.formatUsage = function(a) {
1193311933
return a < .01 ? "0" :a < 1 ? d3.format(".1r")(a) :d3.format(".2r")(a);
1193411934
}, b.$watch("options", function() {
11935-
z = {}, x = null, delete b.metricsError, r();
11935+
A = {}, y = null, delete b.metricsError, r();
1193611936
}, !0), s = a(r, u, !1), b.updateInView = function(a) {
11937-
A = !a, a && (!y || Date.now() > y + u) && r();
11937+
B = !a, a && (!z || Date.now() > z + u) && r();
1193811938
}, e.$on("metrics.charts.resize", function() {
1193911939
c(function() {
1194011940
_.each(t, function(a) {
@@ -11944,7 +11944,7 @@ a.flush();
1194411944
}), b.$on("$destroy", function() {
1194511945
s && (a.cancel(s), s = null), angular.forEach(t, function(a) {
1194611946
a.destroy();
11947-
}), t = null, w = !0;
11947+
}), t = null, x = !0;
1194811948
});
1194911949
}
1195011950
};
@@ -24421,7 +24421,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
2442124421
"<div column class=\"overview-tile-details\" ng-if=\"activeReplicationController && !inProgressDeployment\">\n" +
2442224422
"\n" +
2442324423
"\n" +
24424-
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"podsByOwnerUID[activeReplicationController.metadata.uid]\" containers=\"activeReplicationController.spec.template.spec.containers\" compact class=\"overview-metrics\">\n" +
24424+
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"podsByOwnerUID[activeReplicationController.metadata.uid]\" containers=\"activeReplicationController.spec.template.spec.containers\" profile=\"compact\" class=\"overview-metrics\">\n" +
2442524425
"</deployment-metrics>\n" +
2442624426
"<pod-template ng-if=\"!showMetrics\" pod-template=\"activeReplicationController.spec.template\"></pod-template>\n" +
2442724427
"\n" +
@@ -24483,7 +24483,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
2448324483
"<div column class=\"overview-tile-details\" ng-if=\"latestReplicaSet && !inProgressDeployment\">\n" +
2448424484
"\n" +
2448524485
"\n" +
24486-
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"podsByOwnerUID[latestReplicaSet.metadata.uid]\" containers=\"latestReplicaSet.spec.template.spec.containers\" compact class=\"overview-metrics\">\n" +
24486+
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"podsByOwnerUID[latestReplicaSet.metadata.uid]\" containers=\"latestReplicaSet.spec.template.spec.containers\" profile=\"compact\" class=\"overview-metrics\">\n" +
2448724487
"</deployment-metrics>\n" +
2448824488
"<pod-template ng-if=\"!showMetrics\" pod-template=\"latestReplicaSet.spec.template\"></pod-template>\n" +
2448924489
"\n" +
@@ -24529,7 +24529,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
2452924529
"</a>\n" +
2453024530
"</div>\n" +
2453124531
"<div column class=\"overview-tile-details\">\n" +
24532-
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"[pod]\" containers=\"pod.spec.containers\" compact class=\"overview-metrics\">\n" +
24532+
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"[pod]\" containers=\"pod.spec.containers\" profile=\"compact\" class=\"overview-metrics\">\n" +
2453324533
"</deployment-metrics>\n" +
2453424534
"<pod-template ng-if=\"!showMetrics\" pod-template=\"pod\"></pod-template>\n" +
2453524535
"</div>\n" +
@@ -24720,7 +24720,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
2472024720
"\n" +
2472124721
"\n" +
2472224722
"<div column class=\"overview-tile-details\">\n" +
24723-
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"podsByOwnerUID[set.metadata.uid]\" containers=\"set.spec.template.spec.containers\" compact class=\"overview-metrics\">\n" +
24723+
"<deployment-metrics ng-if=\"showMetrics && !collapse\" pods=\"podsByOwnerUID[set.metadata.uid]\" containers=\"set.spec.template.spec.containers\" profile=\"compact\" class=\"overview-metrics\">\n" +
2472424724
"</deployment-metrics>\n" +
2472524725
"<pod-template ng-if=\"!showMetrics\" pod-template=\"set.spec.template\"></pod-template>\n" +
2472624726
"</div>\n" +

0 commit comments

Comments
 (0)