Skip to content

Commit f2c84f5

Browse files
ability pass codefresh host to monitor app (#456)
1 parent 893fcca commit f2c84f5

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/interface/cli/commands/monitor/install.cmd.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const installMonitorCmd = new Command({
2626
.option('kube-context-name', {
2727
describe: 'Name of the kubernetes context on which monitor should be installed [$CF_ARG_KUBE_CONTEXT_NAME]',
2828
})
29-
.option('in-cluster', {
30-
describe: 'Set flag if monitor is been installed from inside a cluster',
29+
.option('url', {
30+
describe: 'Codefresh url, by default https://g.codefresh.io',
3131
})
3232
.option('kube-namespace', {
3333
describe: 'Name of the namespace on which monitor should be installed [$CF_ARG_KUBE_NAMESPACE]',
@@ -37,7 +37,7 @@ const installMonitorCmd = new Command({
3737
}),
3838
handler: async (argv) => {
3939
const {
40-
'in-cluster': inCluster,
40+
url,
4141
'kube-config-path': kubeConfigPath,
4242
'cluster-id': clusterId,
4343
token,
@@ -68,10 +68,10 @@ const installMonitorCmd = new Command({
6868
kubeNamespace,
6969
token,
7070
clusterId,
71-
inCluster,
7271
kubeConfigPath,
7372
verbose,
7473
events,
74+
codefreshHost: url,
7575
});
7676
if (monitorInstallStatusCode !== 0) {
7777
throw new Error(`\nCodefresh Monitoring installation failed with code ${monitorInstallStatusCode}`);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.60.0",
3+
"version": "0.60.1",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,
@@ -37,7 +37,7 @@
3737
"cf-errors": "^0.1.12",
3838
"chalk": "^1.1.3",
3939
"cli-progress": "3.6.0",
40-
"codefresh-sdk": "^1.8.0",
40+
"codefresh-sdk": "1.8.4",
4141
"colors": "^1.1.2",
4242
"columnify": "^1.5.4",
4343
"compare-versions": "^3.4.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,10 +1242,10 @@ code-point-at@^1.0.0:
12421242
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
12431243
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
12441244

1245-
codefresh-sdk@^1.8.0:
1246-
version "1.8.3"
1247-
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.8.3.tgz#462a053ee197bfd6d4793a8a9bb8a97f5ccd2426"
1248-
integrity sha512-SJOlFZigo/AiaAP1B1g1T96eoXEm8Q93/pVJnv8AVRSyrzHNmIP/BTu/WTzplFjEVv5hfLLt7563wUzgTucDvg==
1245+
codefresh-sdk@1.8.4:
1246+
version "1.8.4"
1247+
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.8.4.tgz#aac884bc9212b0af4036a933c4304318606616f5"
1248+
integrity sha512-+qFBae8M9pb6qRZrHzecw7spVZOLWpbQ/pxyBriGuE7PWBzB4nh4x6eb/R/sP41GA1q5WjwNc1KH4yWwGbV4HA==
12491249
dependencies:
12501250
bluebird "^3.5.3"
12511251
cf-errors "^0.1.12"

0 commit comments

Comments
 (0)