Skip to content

Commit 73beb09

Browse files
author
Oleg Sucharevich
authored
support --skip-cluster-test command on installation flow (#445)
* support --skip-cluster-test command on installation flow
1 parent d6ce7d2 commit 73beb09

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

lib/interface/cli/commands/agent/install.cmd.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ const installAgentCmd = new Command({
6060
.option('install-runtime', {
6161
describe: 'Install and attach runtime on the same namespace as the agent (default is false)',
6262
})
63+
.option('skip-cluster-test', {
64+
describe: 'Do not run cluster acceptance test',
65+
})
6366
.option('verbose', {
6467
describe: 'Print logs',
6568
}),
@@ -77,6 +80,7 @@ const installAgentCmd = new Command({
7780
'kube-config-path': kubeConfigPath,
7881
'skip-version-check': skipVersionCheck,
7982
'install-runtime': installRuntime,
83+
'skip-cluster-test': skipClusterTest,
8084
verbose,
8185
} = argv;
8286
let agent;
@@ -144,6 +148,7 @@ const installAgentCmd = new Command({
144148
venonaVersion,
145149
kubeConfigPath,
146150
skipVersionCheck,
151+
skipClusterTest,
147152
verbose,
148153
agentId: name,
149154
terminateProcess: !installRuntime,
@@ -160,6 +165,7 @@ const installAgentCmd = new Command({
160165
'runtime-kube-config-path': kubeConfigPath,
161166
'attach-runtime': true,
162167
'restart-agent': true,
168+
'skip-cluster-test': skipClusterTest,
163169
verbose,
164170
});
165171
}

lib/interface/cli/commands/runtimeEnvironments/install.cmd.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ const installRuntimeCmd = new Command({
104104
.option('cluster-service-account', {
105105
describe: 'service account for cluster default is default',
106106
})
107+
.option('skip-cluster-test', {
108+
describe: 'Do not run cluster acceptance test',
109+
})
107110
.option('verbose', {
108111
describe: 'Print logs',
109112
}),
@@ -122,6 +125,7 @@ const installRuntimeCmd = new Command({
122125
'build-annotations': buildAnnotations,
123126
'attach-runtime': attachRuntime,
124127
'cluster-service-account': clusterServiceAccount,
128+
'skip-cluster-test': skipClusterTest,
125129
} = argv;
126130

127131
let {
@@ -217,6 +221,7 @@ const installRuntimeCmd = new Command({
217221
setFile,
218222
terminateProcess: !attachRuntime,
219223
events: runtimeEvents,
224+
skipClusterTest,
220225
});
221226
// attach RE to agent in codefresh
222227

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.52.7",
3+
"version": "0.53.0",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,
@@ -37,7 +37,7 @@
3737
"cf-errors": "^0.1.12",
3838
"chalk": "^1.1.3",
3939
"cli-progress": "3.6.0",
40-
"codefresh-sdk": "1.6.2",
40+
"codefresh-sdk": "^1.7.0",
4141
"colors": "^1.1.2",
4242
"columnify": "^1.5.4",
4343
"compare-versions": "^3.4.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,10 +1187,10 @@ code-point-at@^1.0.0:
11871187
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
11881188
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
11891189

1190-
codefresh-sdk@1.6.2:
1191-
version "1.6.2"
1192-
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.6.2.tgz#f8f196c0a53e7207bb9c474cab8147e4d8b53560"
1193-
integrity sha512-Slzy2OmzFGJnHbx7s9m1V/q/9Noo005Kw9c20y0A5A5Ne+5Islra1P5iplMbEP5oE47FutfhUn7QjNt3qAq5Bw==
1190+
codefresh-sdk@^1.7.0:
1191+
version "1.7.0"
1192+
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.7.0.tgz#6a81b1d9756ebcc74544f597198c63f5d2e95f6c"
1193+
integrity sha512-+c2duw3k86y295z7Bx212J8uvsCicsBFJNSijdZMuV/InzdmeYmRjIOvHq/1j6rg1Gl4ogx1z8vk27SKoBnTfQ==
11941194
dependencies:
11951195
bluebird "^3.5.3"
11961196
cf-errors "^0.1.12"

0 commit comments

Comments
 (0)