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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8616578acfca3934b2f45ee39aff881126942781e1b2106e7bf852c12225d011
4
- data.tar.gz: f0c5fb341c478af18bb654f21d9874331f32af8d66c69c5d9ba2677540133b1a
3
+ metadata.gz: 14fa0d2a0d9bfea469ee5a6eeb89c144ef8d055b38b7a628f994c664360860bc
4
+ data.tar.gz: b555e32b0c4e013c6f4ec8dc9ac068ac53e18e94fa2584dba20f76097799cd06
5
5
  SHA512:
6
- metadata.gz: 5b5c9444dc42ddacbc67ce3fa9a50cead99c0c7a198b8c3e04050e5958a0562196bc47a2e1a14f3fe15571e32f99569d21bd953f61a9ebcb0b8647874cb9db69
7
- data.tar.gz: 49da99a88129323d2230047edda463e62f660a4677771f814395e1f836763dd74355ead0211d1f88c6d1a5fff757953e0b0805ba246a8f87fd5f051a135b4b5c
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.1)
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.5)
63
+ mustache (1.1.0)
64
64
  nenv (0.3.0)
65
65
  netrc (0.11.0)
66
66
  notiffany (0.1.1)
@@ -34,7 +34,7 @@ class BoshDeploymentManifest
34
34
  inject_properties(properties, job, "#{key}.#{sub_key}", sub_value)
35
35
  end
36
36
  else
37
- properties["#{job['name']}.#{key}"] = value
37
+ properties[key] = value
38
38
  end
39
39
  end
40
40
  end
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', 'Bosh deployment manifest') do |b|
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, ENV['HOSTNAME'], manifest)
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
@@ -1,3 +1,3 @@
1
1
  class Configgin
2
- VERSION = '0.18.1'.freeze
2
+ VERSION = '0.18.2'.freeze
3
3
  end
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2018-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler