kubernetes-deploy 0.20.1 → 0.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/kubernetes-deploy.gemspec +1 -1
- data/lib/kubernetes-deploy/deploy_task.rb +9 -0
- data/lib/kubernetes-deploy/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be29878940e1111161d4f1aac73b4be1e380aa2d
|
4
|
+
data.tar.gz: 76d8fa55bf536eee005deb575010a735f32d158e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dce418013b179a5cb9972febd167070bb401e1f0d1e41369c284614f949de00303e57ec23bbc76d28b05543d0b75df9b8dec43b2cb747bcfe807cf4b32cca6c
|
7
|
+
data.tar.gz: bd91bbbeba0a45b862210cab7f9a702e007a6974d2bcfee2f3afec6cf74b401c1804898417b1351bc1c18f5d341353f0475ae76a9368a95582684aa8821aa3c1
|
data/CHANGELOG.md
CHANGED
data/kubernetes-deploy.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency "googleauth", ">= 0.5"
|
29
29
|
spec.add_dependency "ejson", "1.0.1"
|
30
30
|
spec.add_dependency "colorize", "~> 0.8"
|
31
|
-
spec.add_dependency "statsd-instrument", "~> 2.
|
31
|
+
spec.add_dependency "statsd-instrument", "~> 2.2"
|
32
32
|
|
33
33
|
spec.add_development_dependency "bundler"
|
34
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -174,15 +174,24 @@ module KubernetesDeploy
|
|
174
174
|
MSG
|
175
175
|
@logger.summary.add_paragraph(ColorizedString.new(warning).yellow)
|
176
176
|
end
|
177
|
+
::StatsD.event("Deployment of #{@namespace} succeeded",
|
178
|
+
"Successfully deployed all #{@namespace} resources to #{@context}",
|
179
|
+
alert_type: "success", tags: statsd_tags << "status:success")
|
177
180
|
::StatsD.measure('all_resources.duration', StatsD.duration(start), tags: statsd_tags << "status:success")
|
178
181
|
@logger.print_summary(:success)
|
179
182
|
rescue DeploymentTimeoutError
|
180
183
|
@logger.print_summary(:timed_out)
|
184
|
+
::StatsD.event("Deployment of #{@namespace} timed out",
|
185
|
+
"One or more #{@namespace} resources failed to deploy to #{@context} in time",
|
186
|
+
alert_type: "error", tags: statsd_tags << "status:timeout")
|
181
187
|
::StatsD.measure('all_resources.duration', StatsD.duration(start), tags: statsd_tags << "status:timeout")
|
182
188
|
raise
|
183
189
|
rescue FatalDeploymentError => error
|
184
190
|
@logger.summary.add_action(error.message) if error.message != error.class.to_s
|
185
191
|
@logger.print_summary(:failure)
|
192
|
+
::StatsD.event("Deployment of #{@namespace} failed",
|
193
|
+
"One or more #{@namespace} resources failed to deploy to #{@context}",
|
194
|
+
alert_type: "error", tags: statsd_tags << "status:failed")
|
186
195
|
::StatsD.measure('all_resources.duration', StatsD.duration(start), tags: statsd_tags << "status:failed")
|
187
196
|
raise
|
188
197
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubernetes-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Verey
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-05-
|
12
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -87,14 +87,14 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '2.
|
90
|
+
version: '2.2'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '2.
|
97
|
+
version: '2.2'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: bundler
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|