Skip to content

Commit 2b69337

Browse files
authored
Merge pull request #6081 from crazy-max/testutil-builder-entitlements
testutil: update docker daemon config struct
2 parents 0506df9 + af1cfa7 commit 2b69337

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

util/testutil/dockerd/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type Config struct {
99
type BuilderEntitlements struct {
1010
NetworkHost bool `json:"network-host,omitempty"`
1111
SecurityInsecure bool `json:"security-insecure,omitempty"`
12+
Device bool `json:"device,omitempty"`
1213
}
1314

1415
type BuilderConfig struct {

util/testutil/workers/dockerd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ func (c Moby) New(ctx context.Context, cfg *integration.BackendConfig) (b integr
124124
dcfg.Builder.Entitlements.NetworkHost = true
125125
case "security.insecure":
126126
dcfg.Builder.Entitlements.SecurityInsecure = true
127+
case "device":
128+
dcfg.Builder.Entitlements.Device = true
127129
}
128130
}
129131
}

0 commit comments

Comments
 (0)