Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/interface/cli/commands/agent/install.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ const installAgentCmd = new Command({
.option('make-default-runtime', {
describe: 'should all pipelines run on the hybrid runtime (default is false)',
})
.option('storage-class-name', {
describe: 'Set a name of your custom storage class, note: this will not install volume provisioning components',
})
.option('skip-cluster-test', {
describe: 'Do not run cluster acceptance test',
})
Expand All @@ -106,6 +109,7 @@ const installAgentCmd = new Command({
'install-runtime': installRuntime,
'make-default-runtime': shouldMakeDefaultRe,
'skip-cluster-test': skipClusterTest,
'storage-class-name': storageClassName,
verbose,
terminateProcess,
} = argv;
Expand Down Expand Up @@ -193,6 +197,7 @@ const installAgentCmd = new Command({
'restart-agent': true,
'make-default-runtime': shouldMakeDefaultRe,
'skip-cluster-test': skipClusterTest,
'storage-class-name': storageClassName,
verbose,
terminateProcess,
});
Expand Down
4 changes: 2 additions & 2 deletions lib/interface/cli/commands/hybrid/delete.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const deleteCmd = new Command({
questions.push({
type: 'list',
name: 'name',
message: 'Runner manager name to uninstall',
message: 'Agent name to uninstall',
choices: agents,
});
}
Expand All @@ -95,7 +95,7 @@ const deleteCmd = new Command({
// check that agent exists
const agent = _.find(agents, curr => curr.name === agentName);
if (!agent) {
console.log(colors.red(`Runner Manager with name ${agentName} doesn\'t exists`));
console.log(colors.red(`Agent with name ${agentName} doesn\'t exists`));
return;
}
if (agent.runtimes && agent.runtimes > 1) {
Expand Down
7 changes: 7 additions & 0 deletions lib/interface/cli/commands/hybrid/init.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ async function createAndExecuteDemoPipeline(runtimeName) {
await pipelinesRunCmd.handler({
name: INSTALLATION_DEFAULTS.DEMO_PIPELINE_NAME,
exitProcess: false,
annotation: [],
});
}

Expand Down Expand Up @@ -173,6 +174,9 @@ const initCmd = new Command({
.option('tolerations', {
describe: 'The kubernetes tolerations as path to a JSON file to be used by venona resources (default is no tolerations) (string)',
})
.option('storage-class-name', {
describe: 'Set a name of your custom storage class, note: this will not install volume provisioning components',
})
.option('venona-version', {
describe: 'Version of venona to install (default is the latest)',
})
Expand All @@ -195,6 +199,7 @@ const initCmd = new Command({
'venona-version': venonaVersion,
'kube-config-path': kubeConfigPath,
'skip-version-check': skipVersionCheck,
'storage-class-name': storageClassName,
yes: noQuestions,
verbose,
name, url,
Expand Down Expand Up @@ -315,6 +320,7 @@ const initCmd = new Command({
'install-runtime': true,
verbose,
'make-default-runtime': shouldMakeDefaultRe,
'storage-class-name': storageClassName,
terminateProcess: false,
});
} catch (error) {
Expand All @@ -340,6 +346,7 @@ const initCmd = new Command({

console.log(colors.green('\nRunner Status:'));
await getAgents.handler({});
console.log(colors.green(`\nGo to ${colors.blue('https://g.codefresh.io/kubernetes/monitor/services')} to view your cluster in codefresh dashbaord`));
console.log(colors.green(`\nDocumenation link: ${colors.blue('https://codefresh.io/docs/docs/enterprise/codefresh-runner/#codefresh-runner-preview-release')}`));
console.log(colors.green(`If you had any issues with the installation please report them at: ${colors.blue('https://github.com/codefresh-io/cli/issues/new')}`));
process.exit(); // TODO : This is not needed - needed to be fixed
Expand Down