helm_upgrade_logs 0.2.4 → 0.2.5

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: b2dc5816493e1b7e6382d703dcc55063f5a6dd59557e233aeb8ad8f355a542c1
4
- data.tar.gz: 2d5d74dc6af95bf6ff06ee3d3c5ad7c6d76baade4d405e141c274041c8ac5914
3
+ metadata.gz: 05d454e1aeebb7122327e049f950b33f35161484018f71fbc2d49482e8830bf3
4
+ data.tar.gz: 3482c02fd2cc6c0a4ce397f8d08aba0a95b75a31c8d43ae595df6bb61bfce442
5
5
  SHA512:
6
- metadata.gz: c7ac65c07401d1a198e3e29ae710cf843b1601e0d7b4f24ae3401aa72b36e1b1bdd182e101df25bcafb01078fb8dae1af296b383b5ae77d3136ba84348d5dfc2
7
- data.tar.gz: d4a00643a7461d16198e7a9f9dec6a93f782cb8790a53efc40344a3303a2c37dcbd939b88ab5d9ff95e482593a16c53283ef0acb4cf24161593aba14b9c3812a
6
+ metadata.gz: 19398249dbecf3c5e8b6d05eca07e33a9c950a6399cc954f4d9db103c25a0824abb770b2972c0fa9b113f6313650610edd5593eac5110a702e1133dc28371331
7
+ data.tar.gz: eb1efb17c3b164b4c4c6e49be16cb7db923d7c96321e2f0e9089ee7e06faf2f79699e9813d60d679de77dad266bbcaffd4ea4cffd2fed12095664761b00cea1a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## [0.2.4]
1
+ ## [0.2.5] 2022-04-21
2
+
3
+ - Return helm status code as script's status code
4
+
5
+ ## [0.2.4] 2022-04-21
2
6
 
3
7
  - Handle `n`, `--namespace` from helm command
4
8
  - Exit if there is failure on helm command while trying to get logs
data/exe/helm_test_logs CHANGED
@@ -12,4 +12,6 @@ helm_pid = Process.spawn "helm test #{ARGV.join(" ")}"
12
12
  log_pid = Process.spawn(add_ns("kubectl logs -lapp.kubernetes.io/instance=#{@release_name} -f --all-containers --prefix --ignore-errors=true --max-log-requests=20 --timestamps=true --since=1s"))
13
13
 
14
14
  Process.wait helm_pid
15
+ helm_status = $CHILD_STATUS.exitstatus
15
16
  `kill #{log_pid}`
17
+ exit helm_status
@@ -42,8 +42,10 @@ while Process.waitpid(@helm_pid, Process::WNOHANG).nil?
42
42
  end
43
43
  sleep 1
44
44
  end
45
+ helm_status = $CHILD_STATUS.exitstatus
45
46
  `kill #{event_pid}`
46
47
  `kill #{service_pid}`
47
48
  @pod_pids.each do |_pod, pid|
48
49
  `kill #{pid}`
49
50
  end
51
+ exit helm_status
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HelmUpgradeLogs
4
- VERSION = "0.2.4"
4
+ # @return [String] Version of helm upgrade logs
5
+ VERSION = "0.2.5"
5
6
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "open3"
4
+ require 'English'
4
5
  require_relative "helm_upgrade_logs/version"
5
6
 
6
7
  ENV["helm_upgrade_logs_log_start"] ||= "90"
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.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt