@@ -844,6 +844,8 @@ const initCmd = new Command({
844
844
return true ;
845
845
}
846
846
847
+ const monitoringToken = _ . get ( sdk , 'config.context.token' ) ;
848
+
847
849
// install monitoring
848
850
installationPlan . addStep ( {
849
851
name : 'install cluster monitoring' ,
@@ -859,7 +861,7 @@ const initCmd = new Command({
859
861
'set-file' : setFile ,
860
862
'dry-run' : dryRun ,
861
863
'bypass-download' : bypassDownload ,
862
- token : _ . get ( sdk , 'config.context.token' ) ,
864
+ token : monitoringToken ,
863
865
verbose,
864
866
noExit : true , // to prevent if from calling inner: process.exit()
865
867
url,
@@ -891,6 +893,7 @@ const initCmd = new Command({
891
893
const monitor = {
892
894
enabled : shouldInstallMonitoringFn ( ) ,
893
895
clusterId : kubeContextName ,
896
+ token : monitoringToken ,
894
897
} ;
895
898
896
899
const global = {
@@ -941,7 +944,7 @@ const initCmd = new Command({
941
944
await drawCodefreshFiglet ( ) ;
942
945
943
946
if ( shouldUseHelm ) {
944
- console . log ( '\n\ nTo install helm run:' ) ;
947
+ console . log ( '\nTo install helm run:\n ' ) ;
945
948
console . log ( 'helm repo add cf-runtime https://h.cfcr.io/codefresh-inc/runtime' ) ;
946
949
console . log ( `kubectl create ns ${ kubeNamespace } ` ) ;
947
950
console . log ( `helm install cf-runtime cf-runtime/cf-runtime -f ${ helmValuesFile } --namespace ${ kubeNamespace } \n` ) ;
0 commit comments