Sha256: f3480f036ad513f8e7282428350b99d05437d3b4574a990ab2424120f036f507

Contents?: true

Size: 516 Bytes

Versions: 7

Compression:

Stored size: 516 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'helm_upgrade_logs'

$release_name = ARGV.find { |arg| !arg.start_with?('-') }

helm_pid = Process.spawn "helm test #{ARGV.join(' ')}"

log_pid = Process.spawn "kubectl logs -lapp.kubernetes.io/managed-by=Helm,app.kubernetes.io/instance=#{$release_name} -f --all-containers --prefix --ignore-errors=true --max-log-requests=20 --timestamps=true"

Process.wait helm_pid
puts `kill #{log_pid}`

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
helm_upgrade_logs-0.2.3 exe/helm_test_logs
helm_upgrade_logs-0.2.2 exe/helm_test_logs
helm_upgrade_logs-0.2.1 exe/helm_test_logs
helm_upgrade_logs-0.2.0 exe/helm_test_logs
helm_upgrade_logs-0.1.7 exe/helm_test_logs
helm_upgrade_logs-0.1.6 exe/helm_test_logs
helm_upgrade_logs-0.1.5 exe/helm_test_logs