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 +4 -4
- data/CHANGELOG.md +4 -0
- data/exe/helm_upgrade_logs +6 -5
- data/lib/helm_upgrade_logs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c152efac3e0107333fb8a9101cb06f9eede40e5bfeb747b3815e3aca8a0d02b7
|
4
|
+
data.tar.gz: c6ef07655615775aebbe6bb347873905b9d5a43dc5a1ef3fcbfbfeaeb28c2d77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aa9f87875f45d174c337314988546e66d4af1bcb279b471a278eb7d826d4eb21362a9a060466abb7e86e27a9902cb9778593f7102e4fbbd82103a72686e68ed
|
7
|
+
data.tar.gz: 2dc02dc6e520c3997957885f68d180a88889132fbf74e3f4f8f01331b92cf3f6ee382c7e98da87557bde798e2854db7eaa5b28ff25c6670c41a7606fc2b94bdb
|
data/CHANGELOG.md
CHANGED
data/exe/helm_upgrade_logs
CHANGED
@@ -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
|
-
|
30
|
-
|
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
|
-
|
61
|
-
|
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
|
-
|
66
|
+
Process.kill("KILL", pid)
|
66
67
|
end
|
67
68
|
|
68
69
|
if ENV["helm_upgrade_logs_error_msg"]
|