Skip to content

Commit 4ea12a9

Browse files
use set-value (#432)
1 parent e272eda commit 4ea12a9

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ const installRuntimeCmd = new Command({
5656
.option('kube-node-selector', {
5757
describe: 'The kubernetes node selector "key=value" to be used by venona build resources (default is no node selector) (string)',
5858
})
59+
.option('set-value', {
60+
describe: 'Set values for templates, example: --set-value LocalVolumesDir=/mnt/disks/ssd0/codefresh-volumes',
61+
})
62+
.option('set-file', {
63+
describe: 'Set values for templates from file, example: --set-file Storage.GoogleServiceAccount=/path/to/service-account.json',
64+
})
5965
.option('dry-run', {
6066
describe: 'Set to true to simulate installation',
6167
})
@@ -105,6 +111,8 @@ const installRuntimeCmd = new Command({
105111
'kube-node-selector': kubeNodeSelector,
106112
'kubernetes-runner-type': kubernetesRunnerType,
107113
'runtime-kube-config-path': kubeConfigPath,
114+
'set-value': setValue,
115+
'set-file': setFile,
108116
verbose,
109117
'build-annotations': buildAnnotations,
110118
'attach-runtime': attachRuntime,
@@ -173,6 +181,9 @@ const installRuntimeCmd = new Command({
173181
kubernetesRunnerType,
174182
kubeConfigPath,
175183
verbose,
184+
kubeNodeSelector,
185+
setValue,
186+
setFile,
176187
terminateProcess: !attachRuntime,
177188
events,
178189
});

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.50.2",
3+
"version": "0.50.3",
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.5.2",
40+
"codefresh-sdk": "1.5.3",
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.5.2:
1191-
version "1.5.2"
1192-
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.5.2.tgz#0b0515ecb46a0ccc2ea4859670b6816d8e8c527f"
1193-
integrity sha512-WZY/ziw/ksrbpQKcrI6OIjC+pNeSbDSrvU/ky5qiRGvYfu4AHZNUn5pqki4Tn9YvAYVZ3ZL1wuGqbYhqtm8wBw==
1190+
codefresh-sdk@1.5.3:
1191+
version "1.5.3"
1192+
resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.5.3.tgz#77e3708d6cd4a9d0fe468b0749b8ac3754de99bb"
1193+
integrity sha512-4gGPHmyEqWxMcvY78XrjMkfA7WlriYOs43ak9YkIfApz6wxAcDy7B7qLwvKi/ZHDM25nwA1W4xrPQqm0ju7Usg==
11941194
dependencies:
11951195
bluebird "^3.5.3"
11961196
cf-errors "^0.1.12"

0 commit comments

Comments
 (0)