configgin 0.18.2 → 0.18.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 14fa0d2a0d9bfea469ee5a6eeb89c144ef8d055b38b7a628f994c664360860bc
4
- data.tar.gz: b555e32b0c4e013c6f4ec8dc9ac068ac53e18e94fa2584dba20f76097799cd06
2
+ SHA1:
3
+ metadata.gz: f039a554edb196b8da7fdf70d1f73bc6d1d89871
4
+ data.tar.gz: b406c33a66f12103b851f224271cd50050cd8048
5
5
  SHA512:
6
- metadata.gz: 55a51f947a970f6895d9805c5743df19e23373c96c90c60321b4ef134db7043493a029841c2313d85fb459cd59006459d303fe53df1b4255494d8295b91a5613
7
- data.tar.gz: cae0e1b09137d19a5f9e1da6319257cf96612f5935eb6c488a144c5db7c75fc13ea277dbf3356e41807db86247ba268983ea0a2b4866d9d3577fd03cb13ab250
6
+ metadata.gz: efa9d5b7eec55d4e27fa363a252a7ea0a102301850103af25b757da4dc363f6c4088fcbc0d01153943acd84873d9858b5bb44d02f8a69ba7713ee18cafd8e627
7
+ data.tar.gz: 6c9f6850b8b6206318e01b4a34421a77653e7a3d617f7308490eceea34423bdd3c89ee603df0e61de3240f9893271616764b2ad69603d00111439b8ea4947a06
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- configgin (0.18.2)
4
+ configgin (0.18.3)
5
5
  bosh-template (~> 2.0)
6
6
  deep_merge (~> 1.1)
7
7
  kubeclient (~> 2.0)
@@ -1,3 +1,3 @@
1
1
  class Configgin
2
- VERSION = '0.18.2'.freeze
2
+ VERSION = '0.18.3'.freeze
3
3
  end
@@ -78,12 +78,13 @@ class KubeLinkSpecs
78
78
 
79
79
  def get_pod_instance_info(pod, job, pods_per_image)
80
80
  index = pod_index(pod.metadata.name)
81
+ # Use pod DNS name for address field, instead of IP address which may change
81
82
  {
82
83
  'name' => pod.metadata.name,
83
84
  'index' => index,
84
85
  'id' => pod.metadata.name,
85
86
  'az' => pod.metadata.annotations['failure-domain.beta.kubernetes.io/zone'] || 'az0',
86
- 'address' => pod.status.podIP,
87
+ 'address' => "#{pod.metadata.name}.#{pod.spec.subdomain}.#{ENV['KUBERNETES_NAMESPACE']}.svc.#{ENV['KUBERNETES_CLUSTER_DOMAIN']}",
87
88
  'properties' => get_exported_properties(pod, job),
88
89
  'bootstrap' => pods_per_image[pod.metadata.uid] < 2
89
90
  }
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.2
4
+ version: 0.18.3
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-29 00:00:00.000000000 Z
11
+ date: 2018-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 2.7.7
184
+ rubygems_version: 2.6.13
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: A simple cli app in Ruby to generate configurations using BOSH ERB templates