You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Install codefresh runner solution\'s components on kubernetes cluster',
21
24
webDocs: {
22
25
category: 'Runner',
@@ -86,6 +89,15 @@ const initCmd = new Command({
86
89
'kube-context-name': kubeContextName,
87
90
'kube-namespace': kubeNamespace,
88
91
}=argv;
92
+
93
+
if(_.get(sdk,'config.context.isNoAuth')&&!token){
94
+
console.log('Not authenticated as a Codefresh account: ');
95
+
console.log('In order to install a Codefresh Runner you need to provide '+
96
+
`an authentication token which can be generated here: ${colors.blue(`${argv.url}/user/settings`)}.`+
97
+
'\nAfter getting the token you may run this command again with the [--token] option or use the codefresh auth command to create an authenticated context.');
98
+
process.exit(1);
99
+
}
100
+
89
101
constquestions=[];
90
102
if(!kubeContextName){
91
103
constcontexts=getAllKubeContexts(kubeConfigPath);
@@ -141,6 +153,7 @@ const initCmd = new Command({
141
153
awaitsdk.configure(config);
142
154
console.log('A codefresh context named hybrid was added in your $HOME folder');
0 commit comments