dapp 0.13.13 → 0.13.15
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/lib/dapp/kube/helm/release.rb +33 -5
- data/lib/dapp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5fa0a97a6909cfc4f97cac432fbbadd642182d0b
|
|
4
|
+
data.tar.gz: a95b621146463015efd477df2548108f8456fbb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71afc61fbe8e6734d32334202833f7895eb78c84183e2ab71f528ab3ab578a535f2616d8f2461fb16209e3527057acb6a228d0852804e65c3f6bbd5ebcf1d0c2
|
|
7
|
+
data.tar.gz: 7ad67260407c8120dd6112611c2224079beb0ca4a91f8fe96028f63d8edcaf880df07f3d5964dda7de6b389af8352ed9c60b54eff55bf676d2b388c5cdb4205e
|
|
@@ -80,12 +80,40 @@ module Dapp
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
if evaluation_output.lines.map(&:strip).grep(/ERROR: Job failed: exit status 1/).any?
|
|
84
|
+
warn evaluation_output
|
|
85
|
+
raise Error::Base, code: :helm_failed
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
hook_start_index = nil
|
|
89
|
+
if ind = evaluation_output.lines.index("HOOKS:\n")
|
|
90
|
+
hook_start_index = ind + 1
|
|
91
|
+
else
|
|
92
|
+
warn "[WARN][DEBUG INFO] Cannot find HOOKS section in helm dry-run output:"
|
|
93
|
+
evaluation_output.lines.each do |line|
|
|
94
|
+
warn "[WARN][DEBUG INFO] #{line.strip}"
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
manifest_start_index = nil
|
|
99
|
+
if ind = evaluation_output.lines.index("MANIFEST:\n")
|
|
100
|
+
manifest_start_index = ind + 1
|
|
101
|
+
else
|
|
102
|
+
warn "[WARN][DEBUG INFO] Cannot find MANIFEST section in helm dry-run output:"
|
|
103
|
+
evaluation_output.lines.each do |line|
|
|
104
|
+
warn "[WARN][DEBUG INFO] #{line.strip}"
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
unless manifest_end_index = evaluation_output.lines.index("Release \"#{name}\" has been upgraded. Happy Helming!\n")
|
|
109
|
+
warn "[WARN][DEBUG INFO] Cannot find end of MANIFEST section in helm dry-run output:"
|
|
110
|
+
evaluation_output.lines.each do |line|
|
|
111
|
+
warn "[WARN][DEBUG INFO] #{line.strip}"
|
|
112
|
+
end
|
|
113
|
+
end
|
|
86
114
|
|
|
87
|
-
generator.call(evaluation_output.lines[hook_start_index..manifest_start_index-2].join)
|
|
88
|
-
generator.call(evaluation_output.lines[manifest_start_index..manifest_end_index-2].join)
|
|
115
|
+
generator.call(evaluation_output.lines[hook_start_index..manifest_start_index-2].join) if hook_start_index and manifest_start_index
|
|
116
|
+
generator.call(evaluation_output.lines[manifest_start_index..manifest_end_index-2].join) if manifest_start_index and manifest_end_index
|
|
89
117
|
end
|
|
90
118
|
end
|
|
91
119
|
|
data/lib/dapp/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dapp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.13.
|
|
4
|
+
version: 0.13.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Stolyarov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-08-
|
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-shellout
|