kubernetes-deploy 0.20.2 → 0.20.3

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: be29878940e1111161d4f1aac73b4be1e380aa2d
4
- data.tar.gz: 76d8fa55bf536eee005deb575010a735f32d158e
3
+ metadata.gz: 73125d92c7edc8d3142ce9b995c4fe41bf8b1e49
4
+ data.tar.gz: 8943574aab76cfe9f03ff27236a666a64ec57ec9
5
5
  SHA512:
6
- metadata.gz: 4dce418013b179a5cb9972febd167070bb401e1f0d1e41369c284614f949de00303e57ec23bbc76d28b05543d0b75df9b8dec43b2cb747bcfe807cf4b32cca6c
7
- data.tar.gz: bd91bbbeba0a45b862210cab7f9a702e007a6974d2bcfee2f3afec6cf74b401c1804898417b1351bc1c18f5d341353f0475ae76a9368a95582684aa8821aa3c1
6
+ metadata.gz: 4525f78d274caf4a18b5412f5ec8ade338248751df8b60a9a149052481103191d6c610d829eec3e11b92992980b936f24dd819d6db21636c5c32cbda2dcafb02
7
+ data.tar.gz: b7650e855730492bb34fd9b1f431a47118c560b7567770d86f379f683b3fd929284ac787192fae6610b51ece6b585ce8cb8780bac321070f2cee26740128e4df
@@ -1,8 +1,17 @@
1
1
  ### Master
2
2
 
3
+ ### 0.20.3
4
+ *Enhancements*
5
+ - Evictions are recoverable so prevent them from triggering fast failure detection ([#293](https://github.com/Shopify/kubernetes-deploy/pull/293)).
6
+ - Use YAML.safe_load over YAML.load_file ([#295](https://github.com/Shopify/kubernetes-deploy/pull/295)).
7
+
8
+
9
+ *Bug Fixes*
10
+ - Default rollout strategy is compatible required-rollout annotation ([#289](https://github.com/Shopify/kubernetes-deploy/pull/289)).
11
+
3
12
  ### 0.20.2
4
13
  *Enhancements*
5
- - Emit data dog events when deploys succeed, time out or fail.
14
+ - Emit data dog events when deploys succeed, time out or fail ([#292](https://github.com/Shopify/kubernetes-deploy/pull/292)).
6
15
  ### 0.20.1
7
16
  *Features*
8
17
 
@@ -13,7 +13,7 @@ module KubernetesDeploy
13
13
  end
14
14
 
15
15
  def self.read(filename)
16
- new(YAML.load_file(filename), File.dirname(filename))
16
+ new(YAML.safe_load(File.read(filename), [Time]), File.dirname(filename))
17
17
  end
18
18
 
19
19
  def new_token
@@ -87,7 +87,7 @@ module KubernetesDeploy
87
87
  end
88
88
 
89
89
  strategy = @definition.dig('spec', 'strategy', 'type').to_s
90
- if required_rollout.downcase == 'maxunavailable' && strategy.downcase != 'rollingupdate'
90
+ if required_rollout.downcase == 'maxunavailable' && strategy.present? && strategy.downcase != 'rollingupdate'
91
91
  @validation_errors << "'#{REQUIRED_ROLLOUT_ANNOTATION}: #{required_rollout}' is incompatible "\
92
92
  "with strategy '#{strategy}'"
93
93
  end
@@ -33,8 +33,8 @@ module KubernetesDeploy
33
33
  end
34
34
 
35
35
  def status
36
- return phase if @instance_data.dig('status', 'reason').blank?
37
- "#{phase} (Reason: #{@instance_data['status']['reason']})"
36
+ return phase if reason.blank?
37
+ "#{phase} (Reason: #{reason})"
38
38
  end
39
39
 
40
40
  def deploy_succeeded?
@@ -57,7 +57,7 @@ module KubernetesDeploy
57
57
  end
58
58
 
59
59
  def failure_message
60
- if phase == FAILED_PHASE_NAME
60
+ if phase == FAILED_PHASE_NAME && reason != "Evicted"
61
61
  phase_problem = "Pod status: #{status}. "
62
62
  end
63
63
 
@@ -102,6 +102,10 @@ module KubernetesDeploy
102
102
  @instance_data.dig("status", "phase") || "Unknown"
103
103
  end
104
104
 
105
+ def reason
106
+ @instance_data.dig('status', 'reason')
107
+ end
108
+
105
109
  def readiness_probe_failure?
106
110
  return false if ready? || unmanaged?
107
111
  return false if phase != "Running"
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module KubernetesDeploy
3
- VERSION = "0.20.2"
3
+ VERSION = "0.20.3"
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.2
4
+ version: 0.20.3
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-23 00:00:00.000000000 Z
12
+ date: 2018-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport