kitchen-dokken 2.21.1 → 2.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/dokken.rb +18 -6
- data/lib/kitchen/driver/dokken_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b01f861452f3bd7f82fe88a3a8cd6c2de64c243816b036da9865551abaecff9b
|
|
4
|
+
data.tar.gz: 1a179c7b593a368ca9638a62939b32b330937600132f358329f36ba146e408cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e981e7f1a9e49ebefca9209a626036bc9c025e82a39ecb92d9ad543b05040c0ab61ccb635d4336e0de5310439b9a881c2a80b16c285a6bfaf070e2be763274ac
|
|
7
|
+
data.tar.gz: 0a8f135d1b9cee2073b51791d30461df8e15abb2c63034c0ab596fcc205268a03999283988ca149834b9b6c5f2c9e1526ef0784d39c58c3a928d46a62b246f28
|
|
@@ -122,6 +122,14 @@ module Kitchen
|
|
|
122
122
|
|
|
123
123
|
private
|
|
124
124
|
|
|
125
|
+
def add_dns_config(endpoint_config)
|
|
126
|
+
return unless self[:dns] || self[:dns_search]
|
|
127
|
+
|
|
128
|
+
endpoint_config["DNSConfig"] = {}
|
|
129
|
+
endpoint_config["DNSConfig"]["Nameservers"] = self[:dns] if self[:dns]
|
|
130
|
+
endpoint_config["DNSConfig"]["Search"] = self[:dns_search] if self[:dns_search]
|
|
131
|
+
end
|
|
132
|
+
|
|
125
133
|
class PartialHash < Hash
|
|
126
134
|
def ==(other)
|
|
127
135
|
other.is_a?(Hash) && all? { |key, val| other.key?(key) && other[key] == val }
|
|
@@ -327,11 +335,13 @@ module Kitchen
|
|
|
327
335
|
},
|
|
328
336
|
}
|
|
329
337
|
unless %w{host bridge}.include?(self[:network_mode])
|
|
338
|
+
endpoint_config = {
|
|
339
|
+
"Aliases" => Array(self[:hostname]).concat(Array(self[:hostname_aliases])),
|
|
340
|
+
}
|
|
341
|
+
add_dns_config(endpoint_config)
|
|
330
342
|
config["NetworkingConfig"] = {
|
|
331
343
|
"EndpointsConfig" => {
|
|
332
|
-
self[:network_mode] =>
|
|
333
|
-
"Aliases" => Array(self[:hostname]).concat(Array(self[:hostname_aliases])),
|
|
334
|
-
},
|
|
344
|
+
self[:network_mode] => endpoint_config,
|
|
335
345
|
},
|
|
336
346
|
}
|
|
337
347
|
end
|
|
@@ -370,11 +380,13 @@ module Kitchen
|
|
|
370
380
|
},
|
|
371
381
|
}
|
|
372
382
|
unless %w{host bridge}.include?(self[:network_mode])
|
|
383
|
+
endpoint_config = {
|
|
384
|
+
"Aliases" => Array(self[:hostname]),
|
|
385
|
+
}
|
|
386
|
+
add_dns_config(endpoint_config)
|
|
373
387
|
config["NetworkingConfig"] = {
|
|
374
388
|
"EndpointsConfig" => {
|
|
375
|
-
self[:network_mode] =>
|
|
376
|
-
"Aliases" => Array(self[:hostname]),
|
|
377
|
-
},
|
|
389
|
+
self[:network_mode] => endpoint_config,
|
|
378
390
|
},
|
|
379
391
|
}
|
|
380
392
|
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.21.
|
|
4
|
+
version: 2.21.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean OMeara
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: docker-api
|