Skip to content

Commit a1ec707

Browse files
SlavaKatiukhadfateyev
authored andcommitted
K8S-529
K8S-529 [K8s]: Cluster upgrade fails from 1.18.10 to 1.20.6
1 parent 1a60e35 commit a1ec707

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

addons/upgrade.jps

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ actions:
186186
resp = resp.response || resp;
187187
if (resp.result != 0) return resp;
188188

189-
var apps = resp.apps, newAddons = {}, mainApp = {}, newJps;
189+
var apps = resp.apps, newAddons = {}, mainApp = {}, newJps, nodeGroup;
190190

191191
try {
192192
newJps = toNative(new org.yaml.snakeyaml.Yaml().load(new com.hivext.api.core.utils.Transport().get(manifestUrl)));
@@ -205,7 +205,7 @@ actions:
205205
var batch = { alias : { m : "Development.Scripting.Eval" }, global : { appid: "appstore", session: session }, methods: [] };
206206

207207
for (var i = 0, n = apps.length; i < n; i++) {
208-
var app = apps[i], nodeGroup = "", jps;
208+
var app = apps[i], jps;
209209

210210
if (!app.isInstalled) continue;
211211
app.settings.data = app.settings.data || {};
@@ -231,6 +231,7 @@ actions:
231231

232232
if (mainApp) {
233233
mainApp = mainApp["kubernetes-release"] || mainApp.kubernetes;
234+
nodeGroup = "";
234235
schedule(mainApp.jps, batch, mainApp.data);
235236
} else return { result: com.hivext.api.Response.OBJECT_FORMAT_ERROR, error: "Kubernetes manifest is not found!", data: ex};
236237

0 commit comments

Comments
 (0)