helm_upgrade_logs 0.3.2 → 0.3.3

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: 5413c44c5fabf6be263e3a827492c64fe16e3551f50c95d12d645a2b77a4fc1b
4
- data.tar.gz: 6819b933e6b024192bc105b63e043797b40e65574e489059b89485c21c813ca4
3
+ metadata.gz: c152efac3e0107333fb8a9101cb06f9eede40e5bfeb747b3815e3aca8a0d02b7
4
+ data.tar.gz: c6ef07655615775aebbe6bb347873905b9d5a43dc5a1ef3fcbfbfeaeb28c2d77
5
5
  SHA512:
6
- metadata.gz: a85680b3534a9be3dae6b6cd639ab301343566da90a5aaa902e8804a33eec500b3eea3668f9084e866c3dcd88bc2d7227cb8cbecc1c7277bd1b0adc304cae2be
7
- data.tar.gz: 6a27d029fd165bbefd3e94f28f45959f6054b421d0264f866f86191512ab02187889ebc0281d6bd791cc4c2ebfb4db722e7f36677372ce53ccadc9ad33cb4e3f
6
+ metadata.gz: 8aa9f87875f45d174c337314988546e66d4af1bcb279b471a278eb7d826d4eb21362a9a060466abb7e86e27a9902cb9778593f7102e4fbbd82103a72686e68ed
7
+ data.tar.gz: 2dc02dc6e520c3997957885f68d180a88889132fbf74e3f4f8f01331b92cf3f6ee382c7e98da87557bde798e2854db7eaa5b28ff25c6670c41a7606fc2b94bdb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.3.3]
2
+
3
+ - Run force kill on processes to ensure they stop
4
+
1
5
  ## [0.3.2]
2
6
 
3
7
  - ADO error and normal error don't need to both be displayed
@@ -26,8 +26,8 @@ wait_for_pod_to_log
26
26
  begin
27
27
  Process.waitpid(@helm_pid, Process::WNOHANG)
28
28
  rescue Errno::ECHILD
29
- `kill #{event_pid}`
30
- `kill #{service_pid}`
29
+ Process.kill("KILL", event_pid)
30
+ Process.kill("KILL", service_pid)
31
31
  raise HelmUpgradeLogs::Error, "Failed to find logs before helm finished"
32
32
  end
33
33
 
@@ -56,13 +56,14 @@ while Process.waitpid(@helm_pid, Process::WNOHANG).nil?
56
56
  end
57
57
  sleep 1
58
58
  end
59
+ puts "[INFO] Cleaning up loggers after helm upgrade"
59
60
  helm_status = $CHILD_STATUS.exitstatus
60
- `kill #{event_pid}`
61
- `kill #{service_pid}`
61
+ Process.kill("KILL", event_pid)
62
+ Process.kill("KILL", service_pid)
62
63
  puts @pod_pids if ENV["helm_upgrade_logs_debug"] == "true"
63
64
  @pod_pids.each do |_pod, pid|
64
65
  puts "Terminating #{_pod} #{pid}" if ENV["helm_upgrade_logs_debug"] == "true"
65
- `kill #{pid}`
66
+ Process.kill("KILL", pid)
66
67
  end
67
68
 
68
69
  if ENV["helm_upgrade_logs_error_msg"]
@@ -2,5 +2,5 @@
2
2
 
3
3
  module HelmUpgradeLogs
4
4
  # @return [String] Version of helm upgrade logs
5
- VERSION = "0.3.2"
5
+ VERSION = "0.3.3"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helm_upgrade_logs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt