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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1da3f74a75f658fb3fd6e31e3ba0a8aa113ad6a
4
- data.tar.gz: f3d779d8ced5cb12260e039c47bdd9cf8106ce83
3
+ metadata.gz: be29878940e1111161d4f1aac73b4be1e380aa2d
4
+ data.tar.gz: 76d8fa55bf536eee005deb575010a735f32d158e
5
5
  SHA512:
6
- metadata.gz: 6b29bb17f2c20c7c1353f57458c159c63c620f085bb7e0769a0565096c831c7503b92789ac7c7f36118e22cd41f49b0ce0e41392230bee85ac79a2230095cff2
7
- data.tar.gz: c875779d47150ba2cd8c784622232651c029ec8a8c411d60763e2a73123c4b1d37d62afc801055dd9fac311e8722415f6c12ab9997592c5595eb7c994b024e7b
6
+ metadata.gz: 4dce418013b179a5cb9972febd167070bb401e1f0d1e41369c284614f949de00303e57ec23bbc76d28b05543d0b75df9b8dec43b2cb747bcfe807cf4b32cca6c
7
+ data.tar.gz: bd91bbbeba0a45b862210cab7f9a702e007a6974d2bcfee2f3afec6cf74b401c1804898417b1351bc1c18f5d341353f0475ae76a9368a95582684aa8821aa3c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ### Master
2
2
 
3
+ ### 0.20.2
4
+ *Enhancements*
5
+ - Emit data dog events when deploys succeed, time out or fail.
3
6
  ### 0.20.1
4
7
  *Features*
5
8
 
@@ -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.1"
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module KubernetesDeploy
3
- VERSION = "0.20.1"
3
+ VERSION = "0.20.2"
4
4
  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.1
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-15 00:00:00.000000000 Z
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.1'
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.1'
97
+ version: '2.2'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: bundler
100
100
  requirement: !ruby/object:Gem::Requirement