kubernetes-deploy 0.1.3 → 0.1.4
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 +4 -4
- data/lib/kubernetes-deploy/runner.rb +6 -0
- data/lib/kubernetes-deploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 229024d6a43f085c767d9943c3cb06ae3f965995
|
4
|
+
data.tar.gz: b5a48ab5bd5dd40ae1bf1d628f9c159083964e6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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
|
13
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|