Skip to content

Commit bdb1284

Browse files
author
kosta709
committed
--set-value falg
1 parent 8073056 commit bdb1284

File tree

5 files changed

+499
-155
lines changed

5 files changed

+499
-155
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "venona",
3-
"version": "0.30.5",
3+
"version": "0.30.6",
44
"description": "Codefresh agent to run on Codefresh's runtime environment and execute pipeline",
55
"main": "index.js",
66
"scripts": {

venonactl/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.30.5
1+
0.30.6

venonactl/cmd/install.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ var installCmd = &cobra.Command{
202202

203203
// from https://github.com/helm/helm/blob/ec1d1a3d3eb672232f896f9d3b3d0797e4f519e3/pkg/cli/values/options.go#L41
204204
base := map[string]interface{}{}
205-
for _, value := range opts.Values {
205+
for _, value := range installCmdOptions.templateValues {
206206
if err := strvals.ParseInto(value, base); err != nil {
207-
return nil, errors.Wrap(err, "failed parsing --set data")
207+
dieOnError(fmt.Errorf("Cannot parse option --set-value %s", value))
208208
}
209209
}
210210
for k, v := range base {
@@ -245,7 +245,7 @@ func init() {
245245
installCmd.Flags().BoolVar(&installCmdOptions.setDefaultRuntime, "set-default", false, "Mark the install runtime-environment as default one after installation")
246246
installCmd.Flags().BoolVar(&installCmdOptions.kubernetesRunnerType, "kubernetes-runner-type", false, "Set the runner type to kubernetes (alpha feature)")
247247

248-
installCmd.Flags().StringArrayVar(&installCmdOptions.templateValues, "set", []string{}, "Set values for templates, example: --set LocalVolumesDir=/mnt/disk/ssd0/codefresh-volumes")
248+
installCmd.Flags().StringArrayVar(&installCmdOptions.templateValues, "set-value", []string{}, "Set values for templates, example: --set-value LocalVolumesDir=/mnt/disk/ssd0/codefresh-volumes")
249249

250250
}
251251

venonactl/go.mod

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,29 @@
11
module github.com/codefresh-io/venona/venonactl
22

3+
go 1.13
4+
35
require (
4-
contrib.go.opencensus.io/exporter/ocagent v0.4.3 // indirect
5-
github.com/Azure/go-autorest v11.4.0+incompatible // indirect
6-
github.com/Masterminds/goutils v1.1.0 // indirect
6+
github.com/Azure/go-autorest/autorest v0.10.0 // indirect
77
github.com/Masterminds/semver v1.5.0 // indirect
88
github.com/Masterminds/sprig v2.22.0+incompatible
9-
github.com/codefresh-io/go-sdk v0.17.0
9+
github.com/codefresh-io/go-sdk v0.18.0
1010
github.com/dustin/go-humanize v1.0.0
11-
github.com/google/go-github/v21 v21.0.0
12-
github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367 // indirect
13-
github.com/google/uuid v1.1.1 // indirect
14-
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d // indirect
15-
github.com/gophercloud/gophercloud v0.0.0-20190206021053-df38e1611dbe // indirect
16-
github.com/gregjones/httpcache v0.0.0-20170728041850-787624de3eb7 // indirect
17-
github.com/hashicorp/go-version v1.1.0
11+
github.com/google/go-github/v21 v21.0.1
12+
github.com/gophercloud/gophercloud v0.8.0 // indirect
13+
github.com/hashicorp/go-version v1.2.0
1814
github.com/huandu/xstrings v1.3.0 // indirect
19-
github.com/imdario/mergo v0.3.5 // indirect
20-
github.com/inconshreveable/log15 v0.0.0-20180818164646-67afb5ed74ec
21-
github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be // indirect
22-
github.com/mattn/go-colorable v0.1.0 // indirect
23-
github.com/mattn/go-isatty v0.0.4 // indirect
24-
github.com/mitchellh/copystructure v1.0.0 // indirect
25-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
26-
github.com/modern-go/reflect2 v1.0.1 // indirect
15+
github.com/imdario/mergo v0.3.8 // indirect
16+
github.com/inconshreveable/log15 v0.0.0-20200109203555-b30bc20e4fd1
17+
github.com/mattn/go-colorable v0.1.6 // indirect
2718
github.com/olekukonko/tablewriter v0.0.4
28-
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
29-
github.com/spf13/cobra v0.0.5
30-
github.com/spf13/viper v1.6.1
31-
go.opencensus.io v0.19.0 // indirect
32-
google.golang.org/appengine v1.4.0 // indirect
33-
gopkg.in/inf.v0 v0.9.0 // indirect
34-
gopkg.in/yaml.v2 v2.2.7
35-
k8s.io/api v0.0.0-20181221193117-173ce66c1e39
36-
k8s.io/apimachinery v0.0.0-20181127025237-2b1284ed4c93
37-
k8s.io/client-go v10.0.0+incompatible
38-
k8s.io/klog v0.0.0-20181108234604-8139d8cb77af // indirect
39-
sigs.k8s.io/yaml v1.1.0 // indirect
19+
github.com/spf13/cobra v0.0.6
20+
github.com/spf13/viper v1.6.2
21+
gopkg.in/yaml.v2 v2.2.8
22+
helm.sh/helm/v3 v3.1.1
23+
k8s.io/api v0.17.3
24+
k8s.io/apimachinery v0.17.3
25+
k8s.io/client-go v0.17.3
26+
k8s.io/utils v0.0.0-20200229041039-0a110f9eb7ab // indirect
4027
)
4128

42-
replace git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20181218151757-9b75e4fe745a
43-
44-
go 1.13
29+
replace github.com/Azure/go-autorest => github.com/Azure/go-autorest v13.3.2+incompatible

0 commit comments

Comments
 (0)