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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/k8s_kit/context.rb +5 -0
- data/lib/k8s_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f864a9d589a62538bb57fdef9d31a92a5397c3c39131abb7357b519d58584c60
|
4
|
+
data.tar.gz: a4b550b0cfb65be96c3487c717f30a0b95ad05ab7977adca7b92d79fc1421852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae630cad1725a0efc667cd84ed13fed32411a9713b1c83ba3c37e5f6446576043ad0f89b3f5ab589ed8aea2b22f22b101486b5ba8a78cf5fb9a3d56cae012a1
|
7
|
+
data.tar.gz: 608e2694761bcd1937e2f1b82c21ba0b026ba693b25d8396e06625061b42b52f90ae27dbcea70c6899de52b5185f5d818433aa4359c278735372e2067f5f986f
|
data/Gemfile.lock
CHANGED
data/lib/k8s_kit/context.rb
CHANGED
@@ -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
|
data/lib/k8s_kit/version.rb
CHANGED