dapp 0.13.16 → 0.13.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cacb4382e2b1b2860063b0a22a6a47b65e3e7df
4
- data.tar.gz: 19ca7a4aa6b21f473599ed870dad6e2dcb2c0cb4
3
+ metadata.gz: f9e04341cb2d60b3950b60e7a0347ce4ba3aefc8
4
+ data.tar.gz: 746bcfa431003b5aaac9d97c7f09aa7a8a895c8d
5
5
  SHA512:
6
- metadata.gz: 040edabd92b748b15d56a6b8bbcd71206b3742703e4a9f671d46bd552fbca15b611760e82cf131011e0b8eb21397931b37dabff3cd3b08a5d41621faf4468f01
7
- data.tar.gz: 6c40e5e04156f2df6098a5a5e5f624b74c6330b331a9ca083047568b0b99e32a5140bdefd075af26e4601a55ac83f98d123aed1567ef64dd3f35c391102b620a
6
+ metadata.gz: 93a186ff50fa4fdceec4a973bc011d21bc60e747cebe7b0f4be3f6bcd905ef5ae578f95732afdf757b4de291f595422c89a088e4c5395d6bfa80f42fe031fe9c
7
+ data.tar.gz: 09f10ab1ae0e559576882fdca1cb64b6c31b89987497ccb7b371625bf9a33d99243ee0f4baf03bc610c73f4824755631b88d5e4d5b22a763547e01dbd9e5316c
@@ -144,7 +144,6 @@ module Dapp
144
144
 
145
145
  watch_hooks_thr = Thread.new do
146
146
  watch_hooks.each {|job| Kubernetes::Manager::Job.new(self, job.name).watch_till_done!}
147
- puts "DONE!"
148
147
  end
149
148
 
150
149
  deployment_managers = release.deployments.values
@@ -80,10 +80,6 @@ module Dapp
80
80
  end
81
81
  end
82
82
 
83
- if evaluation_output.lines.map(&:strip).grep(/ERROR: Job failed: exit status 1/).any?
84
- raise Error::Base, code: :helm_failed
85
- end
86
-
87
83
  hook_start_index = nil
88
84
  if ind = evaluation_output.lines.index("HOOKS:\n")
89
85
  hook_start_index = ind + 1
@@ -98,12 +94,16 @@ module Dapp
98
94
  warn "[WARN][DEBUG INFO] Cannot find MANIFEST section in helm dry-run output:"
99
95
  end
100
96
 
101
- unless manifest_end_index = evaluation_output.lines.index("Release \"#{name}\" has been upgraded. Happy Helming!\n")
102
- warn "[WARN][DEBUG INFO] Cannot find end of MANIFEST section in helm dry-run output:"
103
- end
97
+ happy_helming_start_index = evaluation_output.lines.index("Release \"#{name}\" has been upgraded. Happy Helming!\n")
104
98
 
105
99
  generator.call(evaluation_output.lines[hook_start_index..manifest_start_index-2].join) if hook_start_index and manifest_start_index
106
- generator.call(evaluation_output.lines[manifest_start_index..manifest_end_index-2].join) if manifest_start_index and manifest_end_index
100
+ if manifest_start_index
101
+ if happy_helming_start_index
102
+ generator.call(evaluation_output.lines[manifest_start_index..happy_helming_start_index-2].join)
103
+ else
104
+ generator.call(evaluation_output.lines[manifest_start_index..-1].join)
105
+ end
106
+ end
107
107
  end
108
108
  end
109
109
 
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = '0.13.16'.freeze
2
+ VERSION = '0.13.17'.freeze
3
3
  BUILD_CACHE_VERSION = 15
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.16
4
+ version: 0.13.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov