Skip to content

Commit e3a0461

Browse files
committed
Merge branch 'vz-install-url' into 'main'
fixing install script VZ platform operator install url See merge request weblogic-cloud/weblogic-toolkit-ui!264
2 parents 6cfa16e + 272f9ce commit e3a0461

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

webui/src/js/utils/vz-install-script-generator.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
/**
22
* @license
3-
* Copyright (c) 2022, Oracle and/or its affiliates.
3+
* Copyright (c) 2022, 2023, Oracle and/or its affiliates.
44
* Licensed under The Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl/
55
*/
66
'use strict';
77

88
const REPLACEMENT_TEXT = '@@RELEASE_VERSION_TAG@@';
9-
const URL_TEMPLATE = `https://github.com/verrazzano/verrazzano/releases/download/${ REPLACEMENT_TEXT }/operator.yaml`;
9+
const URL_CHANGE_VERSION = '1.4.0';
10+
const OLD_URL_TEMPLATE =
11+
`https://github.com/verrazzano/verrazzano/releases/download/${ REPLACEMENT_TEXT }/operator.yaml`;
12+
const URL_TEMPLATE =
13+
`https://github.com/verrazzano/verrazzano/releases/download/${ REPLACEMENT_TEXT }/verrazzano-platform-operator.yaml`;
1014

1115
define(['models/wkt-project', 'utils/script-generator-base'],
1216
function(project, ScriptGeneratorBase) {
@@ -75,6 +79,10 @@ define(['models/wkt-project', 'utils/script-generator-base'],
7579
}
7680

7781
_getPlatformOperatorUrl(releaseTagReference) {
82+
if (project.vzInstall.actualInstalledVersion.hasValue()
83+
&& window.api.utils.compareVersions(project.vzInstall.actualInstalledVersion.value, URL_CHANGE_VERSION) < 0) {
84+
return OLD_URL_TEMPLATE.replace(REPLACEMENT_TEXT, releaseTagReference);
85+
}
7886
return URL_TEMPLATE.replace(REPLACEMENT_TEXT, releaseTagReference);
7987
}
8088
}

0 commit comments

Comments
 (0)