k9s_kit 0.0.7.pre.pre3 → 0.0.7.pre.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/k8s_kit/job.rb +3 -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: d6ae62bc9d873abe8e1ec88d4eb2840940cd4445971233130c965e8ddf5fd333
|
4
|
+
data.tar.gz: 2f1de8263c83df6ffde2f032e258bd3ddad3b7283e76f1bdb77e3641086bee34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa7efd4aa8e8803fc4485c75dbd170bdb9e76859ddb5fb83db47211433b1e02d632ef1815f50e210203dbcda3a1dbe9ee1850c17acc06769b161712443c26102
|
7
|
+
data.tar.gz: e1fe0cc599580c9d182ce47e9b4cf09fde65ef5c896a2b038d4776b2331a2a74add038a484321fadc97f4433897fd79e7569c34a8b98694aabc672d04d5b8826
|
data/lib/k8s_kit/job.rb
CHANGED
@@ -16,10 +16,13 @@ module K8sKit
|
|
16
16
|
WaitUtil.wait_for_condition("pod has exit code",
|
17
17
|
:timeout_sec => 30,
|
18
18
|
:delay_sec => 0.5) do
|
19
|
+
foo = pod.exit_code(container: container)
|
20
|
+
puts "Checking exit code: #{foo}"
|
19
21
|
Integer(pod.exit_code(container: container)) rescue false
|
20
22
|
end
|
21
23
|
|
22
24
|
exit_code = pod.exit_code(container: container)
|
25
|
+
puts "Exit code: #{exit_code}"
|
23
26
|
|
24
27
|
delete if delete_on_completion
|
25
28
|
exit exit_code if exit_on_completion
|
data/lib/k8s_kit/version.rb
CHANGED