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({
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 ) ;
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments