kuby-core 0.11.13 → 0.11.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/kuby/docker/metadata.rb +5 -0
- data/lib/kuby/kubernetes/spec.rb +1 -1
- data/lib/kuby/version.rb +1 -1
- data/spec/docker/metadata_spec.rb +3 -3
- 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: bfd902325b0bf78437ea91ba6021ee0cc27f83c67d60a703508a8b0c5a84bc86
|
4
|
+
data.tar.gz: 9598df94486a386235a3566c4c0422f824c30870551251ce3f4836fc94677b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ba1c29f18311795a39c8038940c6bc53ae6868523d520af81a52543ee6726282696f07af78b2cd8d6736ce5d0e7bc98ffd14f61693cf0b7421b7cccbbe6ea70
|
7
|
+
data.tar.gz: 801f401ba743d5375e59c33e1be57b6ae7767d5580e37bef0186dd2e299e7293f1a9e2e277a10b43b94977e0f982be8908e57153fb14d136a9e54aea92031fdf
|
data/CHANGELOG.md
CHANGED
data/lib/kuby/docker/metadata.rb
CHANGED
@@ -41,6 +41,11 @@ module Kuby
|
|
41
41
|
@image_host ||= "#{full_image_uri.host}:#{full_image_uri.port}"
|
42
42
|
end
|
43
43
|
|
44
|
+
sig { returns(String) }
|
45
|
+
def image_hostname
|
46
|
+
@image_hostname ||= full_image_uri.host
|
47
|
+
end
|
48
|
+
|
44
49
|
sig { returns(String) }
|
45
50
|
def image_repo
|
46
51
|
@image_repo ||= full_image_uri.path
|
data/lib/kuby/kubernetes/spec.rb
CHANGED
@@ -152,7 +152,7 @@ module Kuby
|
|
152
152
|
end
|
153
153
|
|
154
154
|
docker_config do
|
155
|
-
registry_host spec.docker.metadata.
|
155
|
+
registry_host spec.docker.metadata.image_hostname
|
156
156
|
username spec.docker.credentials.username
|
157
157
|
password spec.docker.credentials.password
|
158
158
|
email spec.docker.credentials.email
|
data/lib/kuby/version.rb
CHANGED
@@ -19,18 +19,18 @@ describe Kuby::Docker::Metadata do
|
|
19
19
|
describe '#image_host' do
|
20
20
|
subject { metadata.image_host }
|
21
21
|
|
22
|
-
it { is_expected.to eq(Kuby::Docker::DockerURI::DEFAULT_REGISTRY_HOST) }
|
22
|
+
it { is_expected.to eq("#{Kuby::Docker::DockerURI::DEFAULT_REGISTRY_HOST}:443") }
|
23
23
|
|
24
24
|
context 'when the image URL contains an explicit host' do
|
25
25
|
let(:docker_image_url) { 'registry.foo.com/foo/testapp' }
|
26
26
|
|
27
|
-
it { is_expected.to eq('registry.foo.com') }
|
27
|
+
it { is_expected.to eq('registry.foo.com:443') }
|
28
28
|
end
|
29
29
|
|
30
30
|
context 'when the image URL contains an explicit host' do
|
31
31
|
let(:docker_image_url) { 'http://registry.foo.com/foo/testapp' }
|
32
32
|
|
33
|
-
it { is_expected.to eq('registry.foo.com') }
|
33
|
+
it { is_expected.to eq('registry.foo.com:443') }
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuby-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|