helm_upgrade_logs 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +2 -10
- data/exe/helm_upgrade_logs +3 -1
- 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: 3e1693edf80c97ce84e886a2dda47c1207768e259d2b805ad48a005aebf162c3
|
4
|
+
data.tar.gz: a22c8c807b6fc7142d105f17c3481d8c166519e223cc02cb3663f28ac27c2708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3a5490f5fe25c03051980d54b750cb8ba23402cf0a8c168e2230d8b7be5235c74f9d2160860de1270c0641b1465020a7ce9a3d61b4ec0758fbd0e88ed01c9f2
|
7
|
+
data.tar.gz: 9fc06039f972617e254b788ae850fe36d386176cac5ceceb585b113e9cc76e842558ee2460d0ac5f349469eaef2615d350958aec0aca72e603ef6b4cac5e2fb6
|
data/.github/workflows/test.yml
CHANGED
@@ -26,22 +26,14 @@ jobs:
|
|
26
26
|
|
27
27
|
steps:
|
28
28
|
- uses: actions/checkout@v3
|
29
|
-
|
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
|
data/exe/helm_upgrade_logs
CHANGED
@@ -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}`
|