Sha256: f7e8db1d4bb5b4b0eb7fdbb744fb29c5ede33f55431cac932abb959c89a5d169
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'helm_upgrade_logs' helm_pid = Process.spawn "helm upgrade #{ARGV.join(' ')}" sleep 5 log_pid = Process.spawn 'kubectl logs -lapp.kubernetes.io/managed-by=Helm -f --all-containers --prefix' event_pid = Process.spawn 'kubectl get events --watch=true' Process.wait helm_pid puts `kill #{log_pid}` puts `kill #{event_pid}` #3.times { # sleep 5 # text = `helm status nginx | grep STATUS` # if text.include?('deployed') # puts 'Contains' # else # puts 'Nope' # end #} # #puts 'Giving up' #`kill #{helm_pid}` #`kill #{lid}`
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helm_upgrade_logs-0.1.1 | exe/helm_upgrade_logs |