lib/k8s_kit/job.rb in k9s_kit-0.0.7.pre.pre3 vs lib/k8s_kit/job.rb in k9s_kit-0.0.7.pre.pre4
- old
+ new
@@ -14,13 +14,16 @@
pod.logs(container: container, stream: true)
WaitUtil.wait_for_condition("pod has exit code",
:timeout_sec => 30,
:delay_sec => 0.5) do
+ foo = pod.exit_code(container: container)
+ puts "Checking exit code: #{foo}"
Integer(pod.exit_code(container: container)) rescue false
end
exit_code = pod.exit_code(container: container)
+ puts "Exit code: #{exit_code}"
delete if delete_on_completion
exit exit_code if exit_on_completion
exit_code