File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
lib/interface/cli/commands/monitor Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ const installMonitorCmd = new Command({
24
24
. option ( 'token' , {
25
25
describe : 'Codefresh user token' ,
26
26
} )
27
+ . option ( 'kube-config-path' , {
28
+ describe : 'Path to kubeconfig file (default is $HOME/.kube/config)' ,
29
+ type : 'string' ,
30
+ } )
27
31
. option ( 'kube-context-name' , {
28
32
describe : 'Name of the kubernetes context on which monitor should be installed [$CF_ARG_KUBE_CONTEXT_NAME]' ,
29
33
} )
@@ -49,6 +53,7 @@ const installMonitorCmd = new Command({
49
53
// 'kube-config-path': kubeConfigPath,
50
54
'cluster-id' : clusterId ,
51
55
token,
56
+ 'kube-config-path' : kubeConfigPath ,
52
57
'kube-context-name' : kubeContextName ,
53
58
'kube-namespace' : kubeNamespace ,
54
59
'docker-registry' : dockerRegistry ,
@@ -77,6 +82,11 @@ const installMonitorCmd = new Command({
77
82
commands . push ( token ) ;
78
83
}
79
84
85
+ if ( kubeConfigPath ) {
86
+ commands . push ( '--kube-config-path' ) ;
87
+ commands . push ( kubeConfigPath ) ;
88
+ }
89
+
80
90
if ( kubeContextName ) {
81
91
commands . push ( '--kube-context-name' ) ;
82
92
commands . push ( kubeContextName ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.74.1 " ,
3
+ "version" : " 0.74.2 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments