lib/k8s_kit/job.rb in k9s_kit-0.0.7.pre.pre6 vs lib/k8s_kit/job.rb in k9s_kit-0.0.7.pre.pre7
- old
+ new
@@ -14,17 +14,13 @@
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
+ pod.exit_code(container: container) != nil
end
exit_code = pod.exit_code(container: container)
- puts "Exit code: #{exit_code}"
- puts exit_code.class
delete if delete_on_completion
exit exit_code if exit_on_completion
exit_code