configgin 0.18.1 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/bosh_deployment_manifest.rb +1 -1
- data/lib/cli.rb +1 -1
- data/lib/configgin.rb +6 -1
- data/lib/configgin/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: 14fa0d2a0d9bfea469ee5a6eeb89c144ef8d055b38b7a628f994c664360860bc
|
4
|
+
data.tar.gz: b555e32b0c4e013c6f4ec8dc9ac068ac53e18e94fa2584dba20f76097799cd06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a51f947a970f6895d9805c5743df19e23373c96c90c60321b4ef134db7043493a029841c2313d85fb459cd59006459d303fe53df1b4255494d8295b91a5613
|
7
|
+
data.tar.gz: cae0e1b09137d19a5f9e1da6319257cf96612f5935eb6c488a144c5db7c75fc13ea277dbf3356e41807db86247ba268983ea0a2b4866d9d3577fd03cb13ab250
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
configgin (0.18.
|
4
|
+
configgin (0.18.2)
|
5
5
|
bosh-template (~> 2.0)
|
6
6
|
deep_merge (~> 1.1)
|
7
7
|
kubeclient (~> 2.0)
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
mime-types (3.2.2)
|
61
61
|
mime-types-data (~> 3.2015)
|
62
62
|
mime-types-data (3.2018.0812)
|
63
|
-
mustache (1.0
|
63
|
+
mustache (1.1.0)
|
64
64
|
nenv (0.3.0)
|
65
65
|
netrc (0.11.0)
|
66
66
|
notiffany (0.1.1)
|
data/lib/cli.rb
CHANGED
@@ -35,7 +35,7 @@ module Cli
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Bosh deployment manifest
|
38
|
-
opts.on('-b', '--bosh-deployment-manifest', '
|
38
|
+
opts.on('-b', '--bosh-deployment-manifest file', 'BOSH deployment manifest') do |b|
|
39
39
|
options[:bosh_deployment_manifest] = b
|
40
40
|
end
|
41
41
|
|
data/lib/configgin.rb
CHANGED
@@ -33,7 +33,7 @@ class Configgin
|
|
33
33
|
|
34
34
|
if @bosh_deployment_manifest
|
35
35
|
manifest = BoshDeploymentManifest.new(@bosh_deployment_manifest)
|
36
|
-
bosh_spec = BoshDeploymentManifestConfigTransmogrifier.transmogrify(bosh_spec,
|
36
|
+
bosh_spec = BoshDeploymentManifestConfigTransmogrifier.transmogrify(bosh_spec, instance_group, manifest)
|
37
37
|
end
|
38
38
|
rescue NonHashValueOverride => e
|
39
39
|
STDERR.puts e.to_s
|
@@ -110,4 +110,9 @@ class Configgin
|
|
110
110
|
}
|
111
111
|
)
|
112
112
|
end
|
113
|
+
|
114
|
+
def instance_group
|
115
|
+
pod = kube_client.get_pod(ENV['HOSTNAME'], kube_namespace)
|
116
|
+
pod['metadata']['labels']['app.kubernetes.io/component']
|
117
|
+
end
|
113
118
|
end
|
data/lib/configgin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configgin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SUSE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|