helm_upgrade_logs 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/helm_upgrade_logs +2 -17
- 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: c1548a7c6316fbac1e944820b1b8e762d45d9f70592daacd825b688231a7a819
|
4
|
+
data.tar.gz: 0b0fe2f6b84bcc798c4cee1a41b1615a497a11ccbeb6b4c76bbb8708e1518628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbfa619f21a1e8f4b73ff646616556b2090686bc4dff46c31f8dd9d5eb0bac2bab0974d27c63804e42c2272c30710ebeeda94ef0120944409560e5578c63c54f
|
7
|
+
data.tar.gz: 96a1a1d4efdf94b83471d2472f437c5333418cd1a477558c50a04da611caa08a20873b3708c1685ec10552c28b99a9346aa390e0067ab78f7882e4d62aa58f16
|
data/exe/helm_upgrade_logs
CHANGED
@@ -6,25 +6,10 @@ require 'helm_upgrade_logs'
|
|
6
6
|
|
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
10
|
sleep 5
|
11
|
-
log_pid = Process.spawn 'kubectl logs -lapp.kubernetes.io/managed-by=Helm -f --all-containers --prefix'
|
12
|
-
event_pid = Process.spawn 'kubectl get events --watch=true'
|
11
|
+
log_pid = Process.spawn 'kubectl logs -lapp.kubernetes.io/managed-by=Helm -f --all-containers --prefix --pod-running-timeout=20s'
|
13
12
|
|
14
13
|
Process.wait helm_pid
|
15
14
|
puts `kill #{log_pid}`
|
16
15
|
puts `kill #{event_pid}`
|
17
|
-
|
18
|
-
#3.times {
|
19
|
-
# sleep 5
|
20
|
-
# text = `helm status nginx | grep STATUS`
|
21
|
-
# if text.include?('deployed')
|
22
|
-
# puts 'Contains'
|
23
|
-
# else
|
24
|
-
# puts 'Nope'
|
25
|
-
# end
|
26
|
-
#}
|
27
|
-
#
|
28
|
-
#puts 'Giving up'
|
29
|
-
#`kill #{helm_pid}`
|
30
|
-
#`kill #{lid}`
|