kubernetes-deploy 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: f2098811abec5fdb6147e4a50ac43ed38f8c6595
4
- data.tar.gz: a4cccb2a49f08a40ec5a5f09124c2e87400e8f16
3
+ metadata.gz: 229024d6a43f085c767d9943c3cb06ae3f965995
4
+ data.tar.gz: b5a48ab5bd5dd40ae1bf1d628f9c159083964e6a
5
5
  SHA512:
6
- metadata.gz: 0764c379377b2ea2487eb927259e26c29019a13a19c270b770178b27b48d2933de5be049a92e9a490d555c4aec16e4265b8d0ee249fc6bd159a79254f54af5f7
7
- data.tar.gz: 98610e19e49b68a0bce88e79c14472bc40f72bf3e7220baedb9853bf3935ff63e9f806d3c1f20b37d2f9d44694e67836ac634ce924fd1387a92c7e3e252dccb4
6
+ metadata.gz: d62b6779527427b81fd95ecd6bc421177ef16637d9bf227c400848971a5f3fe484cb54473adde550f97112b999366b5e0346740b8f8e648fa26e6c0e38582f36
7
+ data.tar.gz: 0a6625137be4640bbe140bcbbed8012ebd3e36442dc1b6ecbc0ea5cb6e5e844ee931eff4df4314f3c0d65fb94c64ccd9c9f43b38ac1093aec0e42753d7797c7b
@@ -165,6 +165,9 @@ MSG
165
165
 
166
166
  def wait_for_completion(watched_resources)
167
167
  delay_sync_until = Time.now.utc
168
+ started_at = delay_sync_until
169
+ human_resources = watched_resources.map(&:id).join(", ")
170
+ KubernetesDeploy.logger.info("Waiting for #{human_resources}")
168
171
  while watched_resources.present?
169
172
  if Time.now.utc < delay_sync_until
170
173
  sleep (delay_sync_until - Time.now.utc)
@@ -179,6 +182,9 @@ MSG
179
182
  KubernetesDeploy.logger.error(resource.status_data)
180
183
  end
181
184
  end
185
+
186
+ watch_time = Time.now.utc - started_at
187
+ KubernetesDeploy.logger.info("Spent #{watch_time.round(2)}s waiting for #{human_resources}")
182
188
  end
183
189
 
184
190
  def render_template(filename, raw_template)
@@ -1,3 +1,3 @@
1
1
  module KubernetesDeploy
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kir Shatrov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-01-31 00:00:00.000000000 Z
13
+ date: 2017-02-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport