kitchen-dokken 2.13.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/dokken.rb +3 -1
- data/lib/kitchen/driver/dokken_version.rb +1 -1
- data/lib/kitchen/helpers.rb +15 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11e0a7060becac934d969980957fa85ec1db9242263b9bfe1435102c98c5ba5b
|
4
|
+
data.tar.gz: 5090a5db7059ecb32e6807e012d1f49c7274265bb10c8e485cd2a54a9b84fb44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e6d715f25d7cc4b324db6a31aab928d4fdf0c135d6f4fd6a5b9b9f67fb40f5360accf2136494178e1a696d7eb253805b2063f314769a580155ed7c675c0823f
|
7
|
+
data.tar.gz: 68970cd1101555b5556168f7f86cb20f69df80ee27465c41ee176c2946eb00dcaf454444641727a4a73cb223fa06b6d89d7565695346afc05829a4a68f7e9d80
|
@@ -50,6 +50,8 @@ module Kitchen
|
|
50
50
|
default_config :hostname, "dokken"
|
51
51
|
default_config :hostname_aliases, nil
|
52
52
|
default_config :image_prefix, nil
|
53
|
+
default_config :ipv6, false
|
54
|
+
default_config :ipv6_subnet, "2001:db8:1::/64" # "2001:db8::/32 Range reserved for documentation"
|
53
55
|
default_config :links, nil
|
54
56
|
default_config :memory_limit, 0
|
55
57
|
default_config :network_mode, "dokken"
|
@@ -359,7 +361,7 @@ module Kitchen
|
|
359
361
|
with_retries { ::Docker::Network.get("dokken", {}, docker_connection) }
|
360
362
|
rescue ::Docker::Error::NotFoundError
|
361
363
|
begin
|
362
|
-
with_retries { ::Docker::Network.create("dokken",
|
364
|
+
with_retries { ::Docker::Network.create("dokken", network_settings) }
|
363
365
|
rescue ::Docker::Error => e
|
364
366
|
debug "driver - error :#{e}:"
|
365
367
|
end
|
data/lib/kitchen/helpers.rb
CHANGED
@@ -177,6 +177,21 @@ VOLUME /opt/verifier
|
|
177
177
|
coerce_exposed_ports(config[:ports])
|
178
178
|
end
|
179
179
|
|
180
|
+
def network_settings
|
181
|
+
if self[:ipv6]
|
182
|
+
{
|
183
|
+
"EnableIPv6" => true,
|
184
|
+
"IPAM" => {
|
185
|
+
"Config" => [{
|
186
|
+
"Subnet" => self[:ipv6_subnet],
|
187
|
+
}],
|
188
|
+
},
|
189
|
+
}
|
190
|
+
else
|
191
|
+
{}
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
180
195
|
def port_bindings
|
181
196
|
coerce_port_bindings(config[:ports])
|
182
197
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-dokken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean OMeara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '1.15'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '4'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
version: '1.15'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '4'
|
67
67
|
description: A Test Kitchen Driver for Docker & Chef Infra optimized for rapid testing
|
68
68
|
using Chef Infra docker images
|
69
69
|
email:
|