Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 7630d7b

Browse files
Bump github.com/deislabs/duffle and github.com/deislabs/cnab-go
Signed-off-by: Silvin Lubecki <[email protected]>
1 parent fb5d7a5 commit 7630d7b

37 files changed

+168
-119
lines changed

Gopkg.lock

Lines changed: 17 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"testing"
1111

12-
"github.com/deislabs/duffle/pkg/credentials"
12+
"github.com/deislabs/cnab-go/credentials"
1313
"github.com/docker/app/internal"
1414
"github.com/docker/app/internal/yaml"
1515
"gotest.tools/assert"

e2e/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strings"
1313
"testing"
1414

15-
"github.com/deislabs/duffle/pkg/credentials"
15+
"github.com/deislabs/cnab-go/credentials"
1616
"github.com/docker/app/internal/store"
1717
dockerConfigFile "github.com/docker/cli/cli/config/configfile"
1818
"gotest.tools/assert"

e2e/testdata/bundle-with-tag.json.golden

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
"parameters": {
4848
"api_host": {
4949
"type": "string",
50-
"defaultValue": "example.com",
50+
"default": "example.com",
5151
"destination": {
5252
"env": "docker_param1"
5353
}
5454
},
5555
"com.docker.app.kubernetes-namespace": {
5656
"type": "string",
57-
"defaultValue": "",
57+
"default": "",
5858
"metadata": {
5959
"description": "Namespace in which to deploy"
6060
},
@@ -70,7 +70,7 @@
7070
},
7171
"com.docker.app.orchestrator": {
7272
"type": "string",
73-
"defaultValue": "",
73+
"default": "",
7474
"allowedValues": [
7575
"",
7676
"swarm",
@@ -91,7 +91,7 @@
9191
},
9292
"com.docker.app.render-format": {
9393
"type": "string",
94-
"defaultValue": "yaml",
94+
"default": "yaml",
9595
"allowedValues": [
9696
"yaml",
9797
"json"
@@ -108,7 +108,7 @@
108108
},
109109
"com.docker.app.share-registry-creds": {
110110
"type": "bool",
111-
"defaultValue": false,
111+
"default": false,
112112
"metadata": {
113113
"description": "Share registry credentials with the invocation image"
114114
},
@@ -118,14 +118,14 @@
118118
},
119119
"static_subdir": {
120120
"type": "string",
121-
"defaultValue": "data/static",
121+
"default": "data/static",
122122
"destination": {
123123
"env": "docker_param2"
124124
}
125125
},
126126
"web_port": {
127127
"type": "string",
128-
"defaultValue": "8082",
128+
"default": "8082",
129129
"destination": {
130130
"env": "docker_param3"
131131
}

e2e/testdata/simple-bundle.json.golden

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
"parameters": {
4848
"api_host": {
4949
"type": "string",
50-
"defaultValue": "example.com",
50+
"default": "example.com",
5151
"destination": {
5252
"env": "docker_param1"
5353
}
5454
},
5555
"com.docker.app.kubernetes-namespace": {
5656
"type": "string",
57-
"defaultValue": "",
57+
"default": "",
5858
"metadata": {
5959
"description": "Namespace in which to deploy"
6060
},
@@ -70,7 +70,7 @@
7070
},
7171
"com.docker.app.orchestrator": {
7272
"type": "string",
73-
"defaultValue": "",
73+
"default": "",
7474
"allowedValues": [
7575
"",
7676
"swarm",
@@ -91,7 +91,7 @@
9191
},
9292
"com.docker.app.render-format": {
9393
"type": "string",
94-
"defaultValue": "yaml",
94+
"default": "yaml",
9595
"allowedValues": [
9696
"yaml",
9797
"json"
@@ -108,7 +108,7 @@
108108
},
109109
"com.docker.app.share-registry-creds": {
110110
"type": "bool",
111-
"defaultValue": false,
111+
"default": false,
112112
"metadata": {
113113
"description": "Share registry credentials with the invocation image"
114114
},
@@ -118,14 +118,14 @@
118118
},
119119
"static_subdir": {
120120
"type": "string",
121-
"defaultValue": "data/static",
121+
"default": "data/static",
122122
"destination": {
123123
"env": "docker_param2"
124124
}
125125
},
126126
"web_port": {
127127
"type": "string",
128-
"defaultValue": "8082",
128+
"default": "8082",
129129
"destination": {
130130
"env": "docker_param3"
131131
}

examples/cnab-helm/bundle.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"parameters": {
2525
"port": {
26-
"defaultValue": 8080,
26+
"default": 8080,
2727
"type": "int",
2828
"destination": {
2929
"env": "PORT"

internal/commands/cnab.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import (
1010
"os"
1111
"strings"
1212

13+
"github.com/deislabs/cnab-go/action"
1314
"github.com/deislabs/cnab-go/bundle"
14-
"github.com/deislabs/duffle/pkg/action"
15-
"github.com/deislabs/duffle/pkg/claim"
16-
"github.com/deislabs/duffle/pkg/credentials"
17-
"github.com/deislabs/duffle/pkg/driver"
15+
"github.com/deislabs/cnab-go/claim"
16+
"github.com/deislabs/cnab-go/credentials"
17+
"github.com/deislabs/cnab-go/driver"
18+
duffleDriver "github.com/deislabs/duffle/pkg/driver"
1819
"github.com/deislabs/duffle/pkg/loader"
1920
"github.com/docker/app/internal"
2021
"github.com/docker/app/internal/packager"
@@ -176,12 +177,12 @@ func getTargetContext(optstargetContext, currentContext string) string {
176177

177178
// prepareDriver prepares a driver per the user's request.
178179
func prepareDriver(dockerCli command.Cli, bindMount bindMount, stdout io.Writer) (driver.Driver, *bytes.Buffer, error) {
179-
driverImpl, err := driver.Lookup("docker")
180+
driverImpl, err := duffleDriver.Lookup("docker")
180181
if err != nil {
181182
return driverImpl, nil, err
182183
}
183184
errBuf := bytes.NewBuffer(nil)
184-
if d, ok := driverImpl.(*driver.DockerDriver); ok {
185+
if d, ok := driverImpl.(*duffleDriver.DockerDriver); ok {
185186
d.SetDockerCli(dockerCli)
186187
if stdout != nil {
187188
d.SetContainerOut(stdout)

internal/commands/install.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/deislabs/duffle/pkg/action"
8-
"github.com/deislabs/duffle/pkg/credentials"
7+
"github.com/deislabs/cnab-go/action"
8+
"github.com/deislabs/cnab-go/credentials"
99
"github.com/docker/app/internal/store"
1010
"github.com/docker/cli/cli"
1111
"github.com/docker/cli/cli/command"

internal/commands/list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"github.com/deislabs/duffle/pkg/claim"
7+
"github.com/deislabs/cnab-go/claim"
88
"github.com/docker/app/internal/store"
99
"gotest.tools/assert"
1010
"gotest.tools/fs"

internal/commands/parameters_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
"github.com/deislabs/cnab-go/bundle"
7-
"github.com/deislabs/duffle/pkg/claim"
7+
"github.com/deislabs/cnab-go/claim"
88
"github.com/docker/app/internal"
99
"github.com/docker/app/internal/store"
1010
"gotest.tools/assert"
@@ -102,8 +102,8 @@ func TestMergeBundleParameters(t *testing.T) {
102102
bundle := &bundle.Bundle{
103103
Parameters: map[string]bundle.ParameterDefinition{
104104
"param": {
105-
DefaultValue: "default",
106-
DataType: "string",
105+
Default: "default",
106+
DataType: "string",
107107
},
108108
},
109109
}
@@ -123,8 +123,8 @@ func TestMergeBundleParameters(t *testing.T) {
123123
bundle := &bundle.Bundle{
124124
Parameters: map[string]bundle.ParameterDefinition{
125125
"param": {
126-
DefaultValue: "default",
127-
DataType: "string",
126+
Default: "default",
127+
DataType: "string",
128128
},
129129
},
130130
}
@@ -163,8 +163,8 @@ func TestMergeBundleParameters(t *testing.T) {
163163
bundle := &bundle.Bundle{
164164
Parameters: map[string]bundle.ParameterDefinition{
165165
"param": {
166-
DefaultValue: "default",
167-
DataType: "string",
166+
Default: "default",
167+
DataType: "string",
168168
},
169169
},
170170
}

0 commit comments

Comments
 (0)