k8s_kit 0.0.1 → 0.0.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: d6536da6860c0b0bcfa14bae28fbee59110c028b589bab71deb2437f1cd28d2d
4
- data.tar.gz: 4317a20be3364cfb36851c81105d9f59df3aa0ad718350e33ed12a1396e3e27a
3
+ metadata.gz: 33b11063a9309abf2373238864ea744d22eb3244d4673e99e1f42eee2a5eab5b
4
+ data.tar.gz: 7353f4451d40bc9abf3012048bc1a343f9be0991710e1debca6798d81df52e62
5
5
  SHA512:
6
- metadata.gz: 8ecfb4eba9a6ee5832aea993271160d052fd404c9eef4bef58ebb455eb661a1c627fe021dfed1921d5dc39eb33a20091894b6a8db5142ed673a865567c2924bf
7
- data.tar.gz: b9e70468631580c5000831ee0d382580ef9d59a403b3fc78b2eea616bd2096f552b1289b6a127967a9a0ba5c28e5ceb3a9aba95dc70b7f8b0406b01250bbadfc
6
+ metadata.gz: 12074a9d0ccc01eec204fa650e0c2d0e2d7712dfc9f1d9736fdb1eb7773786548dd8a70121b495e47131f1f1dcd8eef25ff7f87f511cffb7d8b77746f70387f9
7
+ data.tar.gz: 66096909c70f02a753ead9658505fbf820f53db61d269032419c21ea2297fd8e228145c8d027aa9b05ac32282ff8d00937552c52930bc91cc94fe38e6f9f9a67
@@ -0,0 +1 @@
1
+ *.gem
@@ -43,14 +43,18 @@ module K8sKit
43
43
  def wait_for_all_pods_ready(timeout: 300)
44
44
  t0 = Time.now
45
45
 
46
+ print 'Waiting for all pods to be ready...'
46
47
  loop do
47
48
  statuses = run('get pods -o jsonpath="{.items.*.status.containerStatuses[*].ready}"')
48
49
  return unless statuses.include?('false')
49
50
 
50
- raise StandardError, 'Timeout while waiting for pods to become ready' if t0 + timeout < Time.now
51
+ if t0 + timeout < Time.now
52
+ puts ''
53
+ raise StandardError, 'Timeout while waiting for pods to become ready'
54
+ end
51
55
 
52
- puts 'Some pods are not ready yet, retrying...'
53
- sleep 5
56
+ print '.'
57
+ sleep 2
54
58
  end
55
59
  end
56
60
  end
@@ -1,3 +1,3 @@
1
1
  module K8sKit
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k8s_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name Here
@@ -73,6 +73,7 @@ executables:
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".gitignore"
76
77
  - Gemfile
77
78
  - Gemfile.lock
78
79
  - bin/k8s_kit