Skip to content

Commit 14f47f9

Browse files
author
OpenShift Bot
committed
bump(github.com/openshift/origin-web-console): 569f20cc5d988c63d84a2aefd989957795ab35b5
1 parent de7602b commit 14f47f9

File tree

1 file changed

+95
-91
lines changed

1 file changed

+95
-91
lines changed

pkg/assets/bindata.go

Lines changed: 95 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -6892,9 +6892,9 @@ d.then(e);
68926892
e.unwatchAll(z);
68936893
});
68946894
}));
6895-
} ]), angular.module("openshiftConsole").controller("ReplicaSetController", [ "$scope", "$filter", "$routeParams", "AuthorizationService", "BreadcrumbsService", "DataService", "DeploymentsService", "EnvironmentService", "HPAService", "ImageStreamResolver", "Logger", "MetricsService", "ModalsService", "Navigate", "PodsService", "ProjectsService", "StorageService", "keyValueEditorUtils", "kind", function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) {
6896-
var t = !1, u = b("annotation"), v = b("humanizeKind")(s);
6897-
switch (s) {
6895+
} ]), angular.module("openshiftConsole").controller("ReplicaSetController", [ "$scope", "$filter", "$routeParams", "AuthorizationService", "BreadcrumbsService", "DataService", "DeploymentsService", "EnvironmentService", "HPAService", "ImageStreamResolver", "Logger", "MetricsService", "ModalsService", "Navigate", "OwnerReferencesService", "PodsService", "ProjectsService", "StorageService", "keyValueEditorUtils", "kind", function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) {
6896+
var u = !1, v = b("annotation"), w = b("humanizeKind")(t), x = b("hasDeployment");
6897+
switch (t) {
68986898
case "ReplicaSet":
68996899
a.resource = {
69006900
group:"extensions",
@@ -6905,19 +6905,19 @@ break;
69056905
case "ReplicationController":
69066906
a.resource = "replicationcontrollers", a.healthCheckURL = n.healthCheckURL(c.project, "ReplicationController", c.replicaSet);
69076907
}
6908-
var w = {};
6909-
a.projectName = c.project, a.kind = s, a.replicaSet = null, a.deploymentConfig = null, a.deploymentConfigMissing = !1, a.imagesByDockerReference = {}, a.builds = {}, a.alerts = {}, a.renderOptions = a.renderOptions || {}, a.renderOptions.hideFilterWidget = !0, a.forms = {}, a.logOptions = {};
6910-
var x = [];
6908+
var y = {};
6909+
a.projectName = c.project, a.kind = t, a.replicaSet = null, a.deploymentConfig = null, a.deploymentConfigMissing = !1, a.imagesByDockerReference = {}, a.builds = {}, a.alerts = {}, a.renderOptions = a.renderOptions || {}, a.renderOptions.hideFilterWidget = !0, a.forms = {}, a.logOptions = {};
6910+
var z = [];
69116911
l.isAvailable().then(function(b) {
69126912
a.metricsAvailable = b;
69136913
});
6914-
var y, z = b("deploymentStatus"), A = function(b) {
6915-
a.logCanRun = !_.includes([ "New", "Pending" ], z(b));
6916-
}, B = !1, C = function(c, d) {
6917-
if (!B) {
6914+
var A, B = b("deploymentStatus"), C = function(b) {
6915+
a.logCanRun = !_.includes([ "New", "Pending" ], B(b));
6916+
}, D = !1, E = function(c, d) {
6917+
if (!D) {
69186918
if (!a.forms.envForm || a.forms.envForm.$pristine) return void (a.updatedReplicaSet = h.copyAndNormalize(c));
69196919
if (h.isEnvironmentEqual(c, d)) return void (a.updatedReplicaSet = h.mergeEdits(a.updatedReplicaSet, c));
6920-
B = !0, a.alerts["env-conflict"] = {
6920+
D = !0, a.alerts["env-conflict"] = {
69216921
type:"warning",
69226922
message:"The environment variables for the " + b("humanizeKind")(a.replicaSet.kind) + " have been updated in the background. Saving your changes may create a conflict or cause loss of data.",
69236923
links:[ {
@@ -6930,7 +6930,7 @@ return a.clearEnvVarUpdates(), !0;
69306930
}
69316931
};
69326932
a.saveEnvVars = function() {
6933-
h.compact(a.updatedReplicaSet), y = f.update(a.resource, c.replicaSet, a.updatedReplicaSet, a.projectContext), y.then(function() {
6933+
h.compact(a.updatedReplicaSet), A = f.update(a.resource, c.replicaSet, a.updatedReplicaSet, a.projectContext), A.then(function() {
69346934
a.alerts.saveEnvSuccess = {
69356935
type:"success",
69366936
message:a.replicaSet.metadata.name + " was updated."
@@ -6943,54 +6943,54 @@ details:b("getErrorDetails")(c)
69436943
};
69446944
});
69456945
}, a.clearEnvVarUpdates = function() {
6946-
a.updatedReplicaSet = h.copyAndNormalize(a.replicaSet), a.forms.envForm.$setPristine(), B = !1;
6946+
a.updatedReplicaSet = h.copyAndNormalize(a.replicaSet), a.forms.envForm.$setPristine(), D = !1;
69476947
};
6948-
var D = b("isIE")() || b("isEdge")(), E = b("orderByDisplayName"), F = b("getErrorDetails"), G = function(b, c) {
6948+
var F = b("isIE")() || b("isEdge")(), G = b("orderByDisplayName"), H = b("getErrorDetails"), I = function(b, c) {
69496949
a.alerts["from-value-objects"] = {
69506950
type:"error",
69516951
message:b,
69526952
details:c
69536953
};
6954-
}, H = [], I = [];
6955-
a.valueFromObjects = [], p.get(c.project).then(_.spread(function(h, l) {
6954+
}, J = [], K = [];
6955+
a.valueFromObjects = [], q.get(c.project).then(_.spread(function(h, l) {
69566956
a.project = h, a.projectContext = l, f.list("configmaps", l, null, {
69576957
errorNotification:!1
69586958
}).then(function(b) {
6959-
H = E(b.by("metadata.name")), a.valueFromObjects = H.concat(I);
6959+
J = G(b.by("metadata.name")), a.valueFromObjects = J.concat(K);
69606960
}, function(a) {
6961-
403 !== a.code && G("Could not load config maps", F(a));
6961+
403 !== a.code && I("Could not load config maps", H(a));
69626962
}), f.list("secrets", l, null, {
69636963
errorNotification:!1
69646964
}).then(function(b) {
6965-
I = E(b.by("metadata.name")), a.valueFromObjects = I.concat(H);
6965+
K = G(b.by("metadata.name")), a.valueFromObjects = K.concat(J);
69666966
}, function(a) {
6967-
403 !== a.code && G("Could not load secrets", F(a));
6967+
403 !== a.code && I("Could not load secrets", H(a));
69686968
});
6969-
var p = {}, r = function() {
6970-
if (a.hpaForRS = i.filterHPA(p, s, c.replicaSet), a.deploymentConfigName && a.isActive) {
6971-
var b = i.filterHPA(p, "DeploymentConfig", a.deploymentConfigName);
6969+
var q = {}, s = function() {
6970+
if (a.hpaForRS = i.filterHPA(q, t, c.replicaSet), a.deploymentConfigName && a.isActive) {
6971+
var b = i.filterHPA(q, "DeploymentConfig", a.deploymentConfigName);
69726972
a.autoscalers = a.hpaForRS.concat(b);
69736973
} else if (a.deployment && a.isActive) {
6974-
var d = i.filterHPA(p, "Deployment", a.deployment.metadata.name);
6974+
var d = i.filterHPA(q, "Deployment", a.deployment.metadata.name);
69756975
a.autoscalers = a.hpaForRS.concat(d);
69766976
} else a.autoscalers = a.hpaForRS;
6977-
}, B = function() {
6978-
x.push(f.watch(a.resource, l, function(b) {
6977+
}, D = function() {
6978+
z.push(f.watch(a.resource, l, function(b) {
69796979
var c, d = [];
69806980
angular.forEach(b.by("metadata.name"), function(b) {
6981-
var c = u(b, "deploymentConfig") || "";
6981+
var c = v(b, "deploymentConfig") || "";
69826982
c === a.deploymentConfigName && d.push(b);
6983-
}), c = g.getActiveDeployment(d), a.isActive = c && c.metadata.uid === a.replicaSet.metadata.uid, r();
6983+
}), c = g.getActiveDeployment(d), a.isActive = c && c.metadata.uid === a.replicaSet.metadata.uid, s();
69846984
}));
6985-
}, J = function() {
6985+
}, L = function() {
69866986
i.getHPAWarnings(a.replicaSet, a.autoscalers, a.limitRanges, h).then(function(b) {
69876987
a.hpaWarnings = b;
69886988
});
6989-
}, K = function(d) {
6990-
var e = u(d, "deploymentConfig");
6989+
}, M = function(d) {
6990+
var e = v(d, "deploymentConfig");
69916991
if (e) {
6992-
t = !0, a.deploymentConfigName = e;
6993-
var g = u(d, "deploymentVersion");
6992+
u = !0, a.deploymentConfigName = e;
6993+
var g = v(d, "deploymentVersion");
69946994
g && (a.logOptions.version = g), a.healthCheckURL = n.healthCheckURL(c.project, "DeploymentConfig", e), f.get("deploymentconfigs", e, l, {
69956995
errorNotification:!1
69966996
}).then(function(b) {
@@ -7003,125 +7003,129 @@ details:b("getErrorDetails")(c)
70037003
});
70047004
});
70057005
}
7006-
}, L = function() {
7006+
}, N = function() {
70077007
a.isActive = g.isActiveReplicaSet(a.replicaSet, a.deployment);
7008-
}, M = b("hasDeployment"), N = !1, O = function() {
7009-
M(a.replicaSet) && f.list({
7008+
}, O = function(b) {
7009+
return _.some(b, function(b) {
7010+
if (_.get(b, "status.replicas") && _.get(b, "metadata.uid") !== _.get(a.replicaSet, "metadata.uid")) {
7011+
var c = o.getControllerReferences(b);
7012+
return _.some(c, {
7013+
uid:a.deployment.metadata.uid
7014+
});
7015+
}
7016+
});
7017+
}, P = !1, Q = function() {
7018+
var b = o.getControllerReferences(a.replicaSet), d = _.find(b, {
7019+
kind:"Deployment"
7020+
});
7021+
d && f.get({
70107022
group:"extensions",
70117023
resource:"deployments"
7012-
}, l).then(function(b) {
7013-
var d = b.by("metadata.name"), h = new LabelSelector(a.replicaSet.spec.selector);
7014-
return a.deployment = _.find(d, function(a) {
7015-
var b = new LabelSelector(a.spec.selector);
7016-
return b.covers(h);
7017-
}), a.deployment ? (a.healthCheckURL = n.healthCheckURL(c.project, "Deployment", a.deployment.metadata.name, "extensions"), x.push(f.watchObject({
7024+
}, d.name, l).then(function(b) {
7025+
a.deployment = b, a.healthCheckURL = n.healthCheckURL(c.project, "Deployment", b.metadata.name, "extensions"), z.push(f.watchObject({
70187026
group:"extensions",
70197027
resource:"deployments"
7020-
}, a.deployment.metadata.name, l, function(b, d) {
7028+
}, b.metadata.name, l, function(b, d) {
70217029
return "DELETED" === d ? (a.alerts["deployment-deleted"] = {
70227030
type:"warning",
70237031
message:"The deployment controlling this replica set has been deleted."
7024-
}, a.healthCheckURL = n.healthCheckURL(c.project, "ReplicaSet", c.replicaSet, "extensions"), a.deploymentMissing = !0, void delete a.deployment) :(a.breadcrumbs = e.getBreadcrumbs({
7032+
}, a.healthCheckURL = n.healthCheckURL(c.project, "ReplicaSet", c.replicaSet, "extensions"), a.deploymentMissing = !0, void delete a.deployment) :(a.deployment = b, a.breadcrumbs = e.getBreadcrumbs({
70257033
object:a.replicaSet,
70267034
displayName:"#" + g.getRevision(a.replicaSet),
70277035
parent:{
70287036
title:a.deployment.metadata.name,
70297037
link:n.resourceURL(a.deployment)
70307038
},
70317039
humanizedKind:"Deployments"
7032-
}), L(), void r());
7033-
})), void x.push(f.watch({
7040+
}), N(), void s());
7041+
})), z.push(f.watch({
70347042
group:"extensions",
70357043
resource:"replicasets"
7036-
}, l, function(b) {
7037-
var c = new LabelSelector(a.deployment.spec.selector);
7038-
N = !1;
7039-
var d = 0;
7040-
_.each(b.by("metadata.name"), function(a) {
7041-
if (a.status.replicas && c.covers(new LabelSelector(a.spec.selector))) return d++, d > 1 ? (N = !0, !1) :void 0;
7042-
});
7043-
}))) :void (a.deploymentMissing = !0);
7044+
}, l, function(a) {
7045+
var b = a.by("metadata.name");
7046+
P = O(b);
7047+
}));
70447048
});
7045-
}, P = function() {
7046-
if (!_.isEmpty(w)) {
7049+
}, R = function() {
7050+
if (!_.isEmpty(y)) {
70477051
var b = _.get(a, "replicaSet.spec.template");
7048-
b && j.fetchReferencedImageStreamImages([ b ], a.imagesByDockerReference, w, l);
7052+
b && j.fetchReferencedImageStreamImages([ b ], a.imagesByDockerReference, y, l);
70497053
}
70507054
};
70517055
f.get(a.resource, c.replicaSet, l, {
70527056
errorNotification:!1
70537057
}).then(function(b) {
7054-
switch (a.loaded = !0, a.replicaSet = b, A(b), s) {
7058+
switch (a.loaded = !0, a.replicaSet = b, C(b), t) {
70557059
case "ReplicationController":
7056-
K(b);
7060+
M(b);
70577061
break;
70587062

70597063
case "ReplicaSet":
7060-
O();
7064+
Q();
70617065
}
7062-
J(), a.breadcrumbs = e.getBreadcrumbs({
7066+
L(), a.breadcrumbs = e.getBreadcrumbs({
70637067
object:b
7064-
}), x.push(f.watchObject(a.resource, c.replicaSet, l, function(b, c) {
7068+
}), z.push(f.watchObject(a.resource, c.replicaSet, l, function(b, c) {
70657069
"DELETED" === c && (a.alerts.deleted = {
70667070
type:"warning",
7067-
message:"This " + v + " has been deleted."
7071+
message:"This " + w + " has been deleted."
70687072
});
70697073
var d = a.replicaSet;
7070-
a.replicaSet = b, y ? y["finally"](function() {
7071-
C(b, d);
7072-
}) :C(b, d), A(b), J(), P();
7073-
})), a.deploymentConfigName && B(), x.push(f.watch("pods", l, function(b) {
7074+
a.replicaSet = b, A ? A["finally"](function() {
7075+
E(b, d);
7076+
}) :E(b, d), C(b), L(), R(), a.deployment && N();
7077+
})), a.deploymentConfigName && D(), z.push(f.watch("pods", l, function(b) {
70747078
var c = b.by("metadata.name");
7075-
a.podsForDeployment = o.filterForOwner(c, a.replicaSet);
7079+
a.podsForDeployment = p.filterForOwner(c, a.replicaSet);
70767080
}));
70777081
}, function(d) {
70787082
a.loaded = !0, a.alerts.load = {
70797083
type:"error",
7080-
message:"The " + v + " details could not be loaded.",
7084+
message:"The " + w + " details could not be loaded.",
70817085
details:b("getErrorDetails")(d)
70827086
}, a.breadcrumbs = e.getBreadcrumbs({
70837087
name:c.replicaSet,
7084-
kind:s,
7088+
kind:t,
70857089
namespace:c.project
70867090
});
7087-
}), x.push(f.watch(a.resource, l, function(c, d, e) {
7088-
a.replicaSets = c.by("metadata.name"), "ReplicationController" === s && (a.deploymentsByDeploymentConfig = g.associateDeploymentsToDeploymentConfig(a.replicaSets));
7091+
}), z.push(f.watch(a.resource, l, function(c, d, e) {
7092+
a.replicaSets = c.by("metadata.name"), "ReplicationController" === t && (a.deploymentsByDeploymentConfig = g.associateDeploymentsToDeploymentConfig(a.replicaSets));
70897093
var f, h;
7090-
e && (f = u(e, "deploymentConfig"), h = e.metadata.name), a.deploymentConfigDeploymentsInProgress = a.deploymentConfigDeploymentsInProgress || {}, d ? "ADDED" === d || "MODIFIED" === d && b("deploymentIsInProgress")(e) ? (a.deploymentConfigDeploymentsInProgress[f] = a.deploymentConfigDeploymentsInProgress[f] || {}, a.deploymentConfigDeploymentsInProgress[f][h] = e) :"MODIFIED" === d && a.deploymentConfigDeploymentsInProgress[f] && delete a.deploymentConfigDeploymentsInProgress[f][h] :a.deploymentConfigDeploymentsInProgress = g.associateRunningDeploymentToDeploymentConfig(a.deploymentsByDeploymentConfig), e ? "DELETED" !== d && (e.causes = b("deploymentCauses")(e)) :angular.forEach(a.replicaSets, function(a) {
7094+
e && (f = v(e, "deploymentConfig"), h = e.metadata.name), a.deploymentConfigDeploymentsInProgress = a.deploymentConfigDeploymentsInProgress || {}, d ? "ADDED" === d || "MODIFIED" === d && b("deploymentIsInProgress")(e) ? (a.deploymentConfigDeploymentsInProgress[f] = a.deploymentConfigDeploymentsInProgress[f] || {}, a.deploymentConfigDeploymentsInProgress[f][h] = e) :"MODIFIED" === d && a.deploymentConfigDeploymentsInProgress[f] && delete a.deploymentConfigDeploymentsInProgress[f][h] :a.deploymentConfigDeploymentsInProgress = g.associateRunningDeploymentToDeploymentConfig(a.deploymentsByDeploymentConfig), e ? "DELETED" !== d && (e.causes = b("deploymentCauses")(e)) :angular.forEach(a.replicaSets, function(a) {
70917095
a.causes = b("deploymentCauses")(a);
70927096
});
7093-
})), x.push(f.watch("imagestreams", l, function(a) {
7097+
})), z.push(f.watch("imagestreams", l, function(a) {
70947098
var b = a.by("metadata.name");
7095-
j.buildDockerRefMapForImageStreams(b, w), P(), k.log("imagestreams (subscribe)", b);
7096-
})), x.push(f.watch("builds", l, function(b) {
7099+
j.buildDockerRefMapForImageStreams(b, y), R(), k.log("imagestreams (subscribe)", b);
7100+
})), z.push(f.watch("builds", l, function(b) {
70977101
a.builds = b.by("metadata.name"), k.log("builds (subscribe)", a.builds);
7098-
})), x.push(f.watch({
7102+
})), z.push(f.watch({
70997103
group:"autoscaling",
71007104
resource:"horizontalpodautoscalers",
71017105
version:"v1"
71027106
}, l, function(a) {
7103-
p = a.by("metadata.name"), r(), J();
7107+
q = a.by("metadata.name"), s(), L();
71047108
}, {
7105-
poll:D,
7109+
poll:F,
71067110
pollInterval:6e4
71077111
})), f.list("limitranges", l).then(function(b) {
7108-
a.limitRanges = b.by("metadata.name"), J();
7112+
a.limitRanges = b.by("metadata.name"), L();
71097113
});
7110-
var Q = 6e4;
7111-
x.push(f.watch("resourcequotas", l, function(b) {
7114+
var S = 6e4;
7115+
z.push(f.watch("resourcequotas", l, function(b) {
71127116
a.quotas = b.by("metadata.name");
71137117
}, {
71147118
poll:!0,
7115-
pollInterval:Q
7116-
})), x.push(f.watch("appliedclusterresourcequotas", l, function(b) {
7119+
pollInterval:S
7120+
})), z.push(f.watch("appliedclusterresourcequotas", l, function(b) {
71177121
a.clusterQuotas = b.by("metadata.name");
71187122
}, {
71197123
poll:!0,
7120-
pollInterval:Q
7124+
pollInterval:S
71217125
}));
7122-
var R = b("deploymentIsLatest");
7126+
var T = b("deploymentIsLatest");
71237127
a.showRollbackAction = function() {
7124-
return "Complete" === z(a.replicaSet) && !R(a.replicaSet, a.deploymentConfig) && !a.replicaSet.metadata.deletionTimestamp && d.canI("deploymentconfigrollbacks", "create");
7128+
return "Complete" === B(a.replicaSet) && !T(a.replicaSet, a.deploymentConfig) && !a.replicaSet.metadata.deletionTimestamp && d.canI("deploymentconfigrollbacks", "create");
71257129
}, a.retryFailedDeployment = function(b) {
71267130
g.retryFailedDeployment(b, l, a);
71277131
}, a.rollbackToDeployment = function(b, c, d, e) {
@@ -7138,9 +7142,9 @@ details:b("getErrorDetails")(c)
71387142
}, e = a.deployment || a.deploymentConfig || a.replicaSet;
71397143
g.scale(e, c).then(_.noop, d);
71407144
};
7141-
var S = b("hasDeploymentConfig");
7145+
var U = b("hasDeploymentConfig");
71427146
a.isScalable = function() {
7143-
return !!_.isEmpty(a.autoscalers) && (!S(a.replicaSet) && !M(a.replicaSet) || (!(!a.deploymentConfigMissing && !a.deploymentMissing) || !(!a.deploymentConfig && !a.deployment) && (a.isActive && !N)));
7147+
return !!_.isEmpty(a.autoscalers) && (!U(a.replicaSet) && !x(a.replicaSet) || (!(!a.deploymentConfigMissing && !a.deploymentMissing) || !(!a.deploymentConfig && !a.deployment) && (a.isActive && !P)));
71447148
}, a.removeVolume = function(c) {
71457149
var d = "This will remove the volume from the " + b("humanizeKind")(a.replicaSet.kind) + ".";
71467150
c.persistentVolumeClaim ? d += " It will not delete the persistent volume claim." :c.secret ? d += " It will not delete the secret." :c.configMap && (d += " It will not delete the config map.");
@@ -7151,11 +7155,11 @@ okButtonText:"Remove",
71517155
okButtonClass:"btn-danger",
71527156
cancelButtonText:"Cancel"
71537157
}), f = function() {
7154-
q.removeVolume(a.replicaSet, c, l);
7158+
r.removeVolume(a.replicaSet, c, l);
71557159
};
71567160
e.then(f);
71577161
}, a.$on("$destroy", function() {
7158-
f.unwatchAll(x);
7162+
f.unwatchAll(z);
71597163
});
71607164
}));
71617165
} ]), angular.module("openshiftConsole").controller("StatefulSetsController", [ "$scope", "$routeParams", "DataService", "ProjectsService", "LabelFilter", "PodsService", function(a, b, c, d, e, f) {

0 commit comments

Comments
 (0)