You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manifest.jps
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -500,34 +500,43 @@ addons:
500
500
type: warning
501
501
message: Cluster components have different Kubernetes version! Please contact support before upgrade.
502
502
- script: |
503
+
function compareVersions(a, b) {
504
+
a = a.replace("v", "").split("."); b = b.replace("v", "").split(".");
505
+
for (var i = 0, l = Math.max(a.length, b.length), x, y; i < l; i++) {x = parseInt(a[i], 10) || 0; y = parseInt(b[i], 10) || 0; if (x != y) return x > y ? 1 : -1 }
506
+
return 0;
507
+
}
508
+
503
509
var envName = "${env.envName}", nodeId = "${nodes.k8sm.master.id}";
504
510
var resp = jelastic.env.control.GetNodeInfo(envName, session, nodeId);
0 commit comments