Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
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 @@ -103,6 +103,7 @@ async function createAndExecuteDemoPipeline(runtimeName, progressReporter) {
const [pipelineExecutionError] = await to(pipelinesRunCmd.handler({
name: INSTALLATION_DEFAULTS.DEMO_PIPELINE_NAME,
exitProcess: false,
annotation: [],
}));
await handleError(pipelineExecutionError, 'Failed to run demo pipeline', progressReporter, installationProgress.events.PIPELINE_EXECUTED);

Expand Down Expand Up @@ -195,6 +196,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 @@ -217,6 +221,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 @@ -347,6 +352,7 @@ const initCmd = new Command({
'install-runtime': true,
verbose,
'make-default-runtime': shouldMakeDefaultRe,
'storage-class-name': storageClassName,
terminateProcess: false,
};
const [err, runtimeName] = await to(installAgent.handler(agentInstallOptions));
Expand All @@ -373,6 +379,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')}`));
await to(progressReporter.report(installationProgress.events.FINISHED, installationProgress.status.SUCCESS));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ const installRuntimeCmd = new Command({
terminateProcess: !attachRuntime,
events: runtimeEvents,
skipClusterTest,
storageClassName,
});
// attach RE to agent in codefresh

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.63.0",
"version": "0.63.1",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down Expand Up @@ -37,7 +37,7 @@
"cf-errors": "^0.1.12",
"chalk": "^1.1.3",
"cli-progress": "3.6.0",
"codefresh-sdk": "1.8.4",
"codefresh-sdk": "1.8.5",
"colors": "^1.1.2",
"columnify": "^1.5.4",
"compare-versions": "^3.4.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1242,10 +1242,10 @@ code-point-at@^1.0.0:
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=

[email protected].4:
version "1.8.4"
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.8.4.tgz#aac884bc9212b0af4036a933c4304318606616f5"
integrity sha512-+qFBae8M9pb6qRZrHzecw7spVZOLWpbQ/pxyBriGuE7PWBzB4nh4x6eb/R/sP41GA1q5WjwNc1KH4yWwGbV4HA==
[email protected].5:
version "1.8.5"
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.8.5.tgz#8c77d5244fe95a49880a83822892fbdbbb21f850"
integrity sha512-TwS2H1+o/n7RY7OQ+kZSpjz/EPTnKmbGcr9wSdkGgoErfU1fNq4y1ALW6Icvh6v7vULZHfJqd8V+dUGFhph6CQ==
dependencies:
bluebird "^3.5.3"
cf-errors "^0.1.12"
Expand Down