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 +4 -4
- data/.gitignore +1 -0
- data/lib/k8s_kit/context.rb +7 -3
- data/lib/k8s_kit/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b11063a9309abf2373238864ea744d22eb3244d4673e99e1f42eee2a5eab5b
|
4
|
+
data.tar.gz: 7353f4451d40bc9abf3012048bc1a343f9be0991710e1debca6798d81df52e62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12074a9d0ccc01eec204fa650e0c2d0e2d7712dfc9f1d9736fdb1eb7773786548dd8a70121b495e47131f1f1dcd8eef25ff7f87f511cffb7d8b77746f70387f9
|
7
|
+
data.tar.gz: 66096909c70f02a753ead9658505fbf820f53db61d269032419c21ea2297fd8e228145c8d027aa9b05ac32282ff8d00937552c52930bc91cc94fe38e6f9f9a67
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/lib/k8s_kit/context.rb
CHANGED
@@ -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
|
-
|
51
|
+
if t0 + timeout < Time.now
|
52
|
+
puts ''
|
53
|
+
raise StandardError, 'Timeout while waiting for pods to become ready'
|
54
|
+
end
|
51
55
|
|
52
|
-
|
53
|
-
sleep
|
56
|
+
print '.'
|
57
|
+
sleep 2
|
54
58
|
end
|
55
59
|
end
|
56
60
|
end
|
data/lib/k8s_kit/version.rb
CHANGED
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.
|
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
|