Skip to content

Commit 48ba8e6

Browse files
added kube-config-path option to install-monitor (#614)
* added kube-config-path option to install-monitor
1 parent 5e1dcb1 commit 48ba8e6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ const installMonitorCmd = new Command({
2424
.option('token', {
2525
describe: 'Codefresh user token',
2626
})
27+
.option('kube-config-path', {
28+
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',
29+
type: 'string',
30+
})
2731
.option('kube-context-name', {
2832
describe: 'Name of the kubernetes context on which monitor should be installed [$CF_ARG_KUBE_CONTEXT_NAME]',
2933
})
@@ -49,6 +53,7 @@ const installMonitorCmd = new Command({
4953
// 'kube-config-path': kubeConfigPath,
5054
'cluster-id': clusterId,
5155
token,
56+
'kube-config-path': kubeConfigPath,
5257
'kube-context-name': kubeContextName,
5358
'kube-namespace': kubeNamespace,
5459
'docker-registry': dockerRegistry,
@@ -77,6 +82,11 @@ const installMonitorCmd = new Command({
7782
commands.push(token);
7883
}
7984

85+
if (kubeConfigPath) {
86+
commands.push('--kube-config-path');
87+
commands.push(kubeConfigPath);
88+
}
89+
8090
if (kubeContextName) {
8191
commands.push('--kube-context-name');
8292
commands.push(kubeContextName);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.74.1",
3+
"version": "0.74.2",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)