Skip to content

Commit d9ab188

Browse files
fixing bug causing the wrong operator file name to be used with newer versions of Verrazzano (#219)
* fixing bug causing the wrong operator file name to be used with newer versions of Verrazzano * fixing log message
1 parent 6e332bf commit d9ab188

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

electron/app/js/vzInstaller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const githubUtils = require('./githubUtils');
77
const kubectlUtils = require('./kubectlUtils');
88
const i18n = require('./i18next.config');
99
const { compareVersions } = require('./versionUtils');
10+
const {getLogger} = require('./wktLogging');
1011

1112
const VZ_BASE_API_URL = 'https://api.github.com/repos/verrazzano/verrazzano';
1213
const VZ_BASE_URL = 'https://github.com/verrazzano/verrazzano';
@@ -43,14 +44,14 @@ async function installVerrazzanoPlatformOperator(kubectlExe, k8sOptions, vzOptio
4344

4445
if (vzOptions.tag) {
4546
const version = vzOptions.tag.slice(1);
47+
getLogger().debug('installVerrazzanoPlatformOperator: vzOptions.tag = %s and version = %s', vzOptions.tag, version);
4648
if (compareVersions(version, '1.4.0') >= 0) {
4749
platformOperatorUrl = `${VZ_BASE_URL}/releases/download/${vzOptions.tag}/verrazzano-platform-operator.yaml`;
4850
} else {
4951
// Before Verrazzano 1.4, the operator file name was operator.yaml...
5052
//
5153
platformOperatorUrl = `${VZ_BASE_URL}/releases/download/${vzOptions.tag}/operator.yaml`;
5254
}
53-
platformOperatorUrl = `${VZ_BASE_URL}/releases/download/${vzOptions.tag}/operator.yaml`;
5455
} else {
5556
platformOperatorUrl = `${VZ_BASE_URL}/releases/latest/verrazzano-platform-operator.yaml`;
5657
}

0 commit comments

Comments
 (0)