k8s_kit 0.0.2 → 0.0.3

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: 33b11063a9309abf2373238864ea744d22eb3244d4673e99e1f42eee2a5eab5b
4
- data.tar.gz: 7353f4451d40bc9abf3012048bc1a343f9be0991710e1debca6798d81df52e62
3
+ metadata.gz: f864a9d589a62538bb57fdef9d31a92a5397c3c39131abb7357b519d58584c60
4
+ data.tar.gz: a4b550b0cfb65be96c3487c717f30a0b95ad05ab7977adca7b92d79fc1421852
5
5
  SHA512:
6
- metadata.gz: 12074a9d0ccc01eec204fa650e0c2d0e2d7712dfc9f1d9736fdb1eb7773786548dd8a70121b495e47131f1f1dcd8eef25ff7f87f511cffb7d8b77746f70387f9
7
- data.tar.gz: 66096909c70f02a753ead9658505fbf820f53db61d269032419c21ea2297fd8e228145c8d027aa9b05ac32282ff8d00937552c52930bc91cc94fe38e6f9f9a67
6
+ metadata.gz: 6ae630cad1725a0efc667cd84ed13fed32411a9713b1c83ba3c37e5f6446576043ad0f89b3f5ab589ed8aea2b22f22b101486b5ba8a78cf5fb9a3d56cae012a1
7
+ data.tar.gz: 608e2694761bcd1937e2f1b82c21ba0b026ba693b25d8396e06625061b42b52f90ae27dbcea70c6899de52b5185f5d818433aa4359c278735372e2067f5f986f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- k8s_kit (0.0.1)
4
+ k8s_kit (0.0.2)
5
5
  gli (= 2.18.1)
6
6
 
7
7
  GEM
@@ -46,6 +46,11 @@ module K8sKit
46
46
  print 'Waiting for all pods to be ready...'
47
47
  loop do
48
48
  statuses = run('get pods -o jsonpath="{.items.*.status.containerStatuses[*].ready}"')
49
+ if statuses.empty?
50
+ puts ''
51
+ raise StandardError, 'No pod could be found in the namespace'
52
+ end
53
+
49
54
  return unless statuses.include?('false')
50
55
 
51
56
  if t0 + timeout < Time.now
@@ -1,3 +1,3 @@
1
1
  module K8sKit
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name Here