helm_upgrade_logs 0.1.2 → 0.1.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: c1548a7c6316fbac1e944820b1b8e762d45d9f70592daacd825b688231a7a819
4
- data.tar.gz: 0b0fe2f6b84bcc798c4cee1a41b1615a497a11ccbeb6b4c76bbb8708e1518628
3
+ metadata.gz: 3e1693edf80c97ce84e886a2dda47c1207768e259d2b805ad48a005aebf162c3
4
+ data.tar.gz: a22c8c807b6fc7142d105f17c3481d8c166519e223cc02cb3663f28ac27c2708
5
5
  SHA512:
6
- metadata.gz: fbfa619f21a1e8f4b73ff646616556b2090686bc4dff46c31f8dd9d5eb0bac2bab0974d27c63804e42c2272c30710ebeeda94ef0120944409560e5578c63c54f
7
- data.tar.gz: 96a1a1d4efdf94b83471d2472f437c5333418cd1a477558c50a04da611caa08a20873b3708c1685ec10552c28b99a9346aa390e0067ab78f7882e4d62aa58f16
6
+ metadata.gz: f3a5490f5fe25c03051980d54b750cb8ba23402cf0a8c168e2230d8b7be5235c74f9d2160860de1270c0641b1465020a7ce9a3d61b4ec0758fbd0e88ed01c9f2
7
+ data.tar.gz: 9fc06039f972617e254b788ae850fe36d386176cac5ceceb585b113e9cc76e842558ee2460d0ac5f349469eaef2615d350958aec0aca72e603ef6b4cac5e2fb6
@@ -26,22 +26,14 @@ jobs:
26
26
 
27
27
  steps:
28
28
  - uses: actions/checkout@v3
29
- # - name: Set up Ruby
30
- # # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31
- # # change this to (see https://github.com/ruby/setup-ruby#versioning):
32
- # # uses: ruby/setup-ruby@v1
33
- # uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
34
- # with:
35
- # ruby-version: ${{ matrix.ruby-version }}
36
- # bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37
- - name: Test
29
+ - name: Start KIND cluster
38
30
  run: bash -f bin/start_kind.sh
39
31
  - name: Waiting for KIND cluster to get ready
40
32
  run: sleep 70
41
33
  - name: Add bitnami repo
42
34
  run: helm repo add bitnami https://charts.bitnami.com/bitnami
43
35
  - name: Install through gem exe
44
- run: ./exe/helm_upgrade_logs --install nginx bitnami/nginx --wait --debug --set service.type=ClusterIP
36
+ run: ./exe/helm_upgrade_logs --install nginx bitnami/nginx --wait --debug --set service.type=ClusterIP --replicaCount=2
45
37
  # - name: Check pods
46
38
  # run: kubectl get pods --all-namespaces
47
39
  # - name: Check Events
@@ -7,9 +7,11 @@ require 'helm_upgrade_logs'
7
7
  helm_pid = Process.spawn "helm upgrade #{ARGV.join(' ')}"
8
8
 
9
9
  event_pid = Process.spawn 'kubectl get events --watch-only=true'
10
+ service_pid = Process.spawn 'kubectl get services --watch-only=true'
10
11
  sleep 5
11
- log_pid = Process.spawn 'kubectl logs -lapp.kubernetes.io/managed-by=Helm -f --all-containers --prefix --pod-running-timeout=20s'
12
+ log_pid = Process.spawn 'kubectl logs -lapp.kubernetes.io/managed-by=Helm -f --all-containers --prefix --pod-running-timeout=20s --ignore-errors=true --max-log-requests=20'
12
13
 
13
14
  Process.wait helm_pid
14
15
  puts `kill #{log_pid}`
15
16
  puts `kill #{event_pid}`
17
+ puts `kill #{service_pid}`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HelmUpgradeLogs
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt