k9s_kit 0.0.7.pre.pre5 → 0.0.7.pre.pre6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c19f7c3cd967dab783ac939aec70cac30d63aa7edd58fed7c23234e2b8bab68
4
- data.tar.gz: f0af0db69964d54d103ec06ec48e0594d55e41d081b60fad1630ede8e55ac74f
3
+ metadata.gz: 94687a8a2addbaf46b4a57c832d6cb32957ff394016c9b7df4439fb2f66cc493
4
+ data.tar.gz: 2670736bfee9e4aa75a72cf4cdeaa30988f5414f4efaea72a23d5b73b8c39cc9
5
5
  SHA512:
6
- metadata.gz: 1975b3fa4b284a6a630906a0318e2edd0d9f5a2883e2b97f45b28b28c6481da1b0d54738da15c75c3c69766c645ad6def2b32d0d427c18542dccafa939bdbbb7
7
- data.tar.gz: 557c70d84f6ea4912d8c98ca0c8d4bc83cb0a3d5483a1989846783de43c5bec22628b9d6e68a5f1899d78415bd80e01f2446dbbc40e9019ea3e966796eb081cf
6
+ metadata.gz: af69aad13c420916d21be09877231fd18cd89b4163fc29d318aad90389daeff6ad7646473311e55804ac10e2ca4382ade3551b0ef8f2d52f6add384c44ae8426
7
+ data.tar.gz: 34a157dad0fe862dacd4ed317c6a8a20ba5412d3dd295e16696d174c08361adb15861e0aa1010d42c71bd5209738c546571a6f480610a38539aa4fd6cc67b772
data/lib/k8s_kit/job.rb CHANGED
@@ -23,6 +23,7 @@ module K8sKit
23
23
 
24
24
  exit_code = pod.exit_code(container: container)
25
25
  puts "Exit code: #{exit_code}"
26
+ puts exit_code.class
26
27
 
27
28
  delete if delete_on_completion
28
29
  exit exit_code if exit_on_completion
data/lib/k8s_kit/pod.rb CHANGED
@@ -25,7 +25,7 @@ module K8sKit
25
25
 
26
26
  def exit_code(container:)
27
27
  json_path = "{ .status.containerStatuses[?(@.name == '#{container}')].state.terminated.exitCode }"
28
- context.run("get pod #{name} -o jsonpath=\"#{json_path}\"").to_i
28
+ Integer(context.run("get pod #{name} -o jsonpath=\"#{json_path}\""))
29
29
  rescue StandardError
30
30
  puts "Eek"
31
31
  nil
@@ -1,3 +1,3 @@
1
1
  module K8sKit
2
- VERSION = '0.0.7-pre5'
2
+ VERSION = '0.0.7-pre6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k9s_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7.pre.pre5
4
+ version: 0.0.7.pre.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name Here