docker_rails_proxy 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0882abc69188d3b117b591d556aaa8f455b2b39f7c202431395dad38b43f368e'
|
4
|
+
data.tar.gz: d9e0a97cfd5f2e20e8ee165aad48f039dc93a08f23ff1bc9d9df6ab0fdff0952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 617d811b66a5979841f060c9fae053a4854f841508505496e20671ce08ba735680c23c2a48cfdcf9d8f5fcc7b25a6486ce05ef7cf98dc15af97043185511242a
|
7
|
+
data.tar.gz: 95ac9930f12508e8973c64c7a905659e58d898e6fd90b685e5b1705ac82dce684f53582e1b7d6f40d26e91ee7949de69d11b409752168581d076600176cae55e
|
@@ -21,7 +21,7 @@ module DockerRailsProxy
|
|
21
21
|
validates do
|
22
22
|
self.data = YAML.load_file(options[:path])
|
23
23
|
|
24
|
-
unless
|
24
|
+
unless data['kind'] == 'Config'
|
25
25
|
"#{options[:path]} is not a valid kubeconfig file"
|
26
26
|
end
|
27
27
|
end
|
@@ -33,13 +33,28 @@ module DockerRailsProxy
|
|
33
33
|
|
34
34
|
data['clusters'].each do |hash|
|
35
35
|
cluster = hash['cluster']
|
36
|
-
|
36
|
+
|
37
|
+
if cluster['certificate-authority'].present?
|
38
|
+
cluster['certificate-authority'] = File.absolute_path(
|
39
|
+
cluster['certificate-authority'], absolute_dir
|
40
|
+
)
|
41
|
+
end
|
37
42
|
end
|
38
43
|
|
39
44
|
data['users'].each do |hash|
|
40
45
|
user = hash['user']
|
41
|
-
|
42
|
-
user['client-
|
46
|
+
|
47
|
+
if user['client-certificate'].present?
|
48
|
+
user['client-certificate'] = File.absolute_path(
|
49
|
+
user['client-certificate'], absolute_dir
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
if user['client-key'].present?
|
54
|
+
user['client-key'] = File.absolute_path(
|
55
|
+
user['client-key'], absolute_dir
|
56
|
+
)
|
57
|
+
end
|
43
58
|
end
|
44
59
|
end
|
45
60
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker_rails_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jairo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Configures docker-compose and provides rails command helpers
|
15
15
|
email:
|