k9s_kit 0.0.7.pre.pre6 → 0.0.7.pre.pre7

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: 94687a8a2addbaf46b4a57c832d6cb32957ff394016c9b7df4439fb2f66cc493
4
- data.tar.gz: 2670736bfee9e4aa75a72cf4cdeaa30988f5414f4efaea72a23d5b73b8c39cc9
3
+ metadata.gz: 3e6cc77c67ebb117b8f65155684636c44b69c6338b6f4a2c8ae3d54100393061
4
+ data.tar.gz: 2a2891df9216b69df6914b1f329d5052cded08e9818caa842ee4ffc3f7aa9132
5
5
  SHA512:
6
- metadata.gz: af69aad13c420916d21be09877231fd18cd89b4163fc29d318aad90389daeff6ad7646473311e55804ac10e2ca4382ade3551b0ef8f2d52f6add384c44ae8426
7
- data.tar.gz: 34a157dad0fe862dacd4ed317c6a8a20ba5412d3dd295e16696d174c08361adb15861e0aa1010d42c71bd5209738c546571a6f480610a38539aa4fd6cc67b772
6
+ metadata.gz: '081d16c09ca45af33f6e29d6c8cff7b602299bacf8c09540c472e51b4a07acf1f012a8fe71edb95813e601634b32b360f92fa3be98c329b118e25138921a2c11'
7
+ data.tar.gz: 28c7efde092b326bf21330f8a6c58cba383d2b838b57040509339e0800c4cc88c925279986d3035f91474828036fc626f0534735fe5d966e62a821fb24123f3a
@@ -15,7 +15,6 @@ module K8sKit
15
15
 
16
16
  def run(cmd, silent: true)
17
17
  cmd = "#{kubectl} #{cmd}"
18
- puts "Running #{cmd}"
19
18
 
20
19
  out = []
21
20
  Open3.popen2e(cmd) do |stdin, stdout_err, wait_thr|
@@ -16,14 +16,10 @@ 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}"
21
- Integer(pod.exit_code(container: container)) rescue false
19
+ pod.exit_code(container: container) != nil
22
20
  end
23
21
 
24
22
  exit_code = pod.exit_code(container: container)
25
- puts "Exit code: #{exit_code}"
26
- puts exit_code.class
27
23
 
28
24
  delete if delete_on_completion
29
25
  exit exit_code if exit_on_completion
@@ -27,7 +27,6 @@ module K8sKit
27
27
  json_path = "{ .status.containerStatuses[?(@.name == '#{container}')].state.terminated.exitCode }"
28
28
  Integer(context.run("get pod #{name} -o jsonpath=\"#{json_path}\""))
29
29
  rescue StandardError
30
- puts "Eek"
31
30
  nil
32
31
  end
33
32
  end
@@ -1,3 +1,3 @@
1
1
  module K8sKit
2
- VERSION = '0.0.7-pre6'
2
+ VERSION = '0.0.7-pre7'
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.pre6
4
+ version: 0.0.7.pre.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name Here