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 +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/kubernetes-deploy/kubeclient_builder/google_friendly_config.rb +1 -1
- data/lib/kubernetes-deploy/kubernetes_resource/deployment.rb +1 -1
- data/lib/kubernetes-deploy/kubernetes_resource/pod.rb +7 -3
- data/lib/kubernetes-deploy/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: 73125d92c7edc8d3142ce9b995c4fe41bf8b1e49
|
4
|
+
data.tar.gz: 8943574aab76cfe9f03ff27236a666a64ec57ec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4525f78d274caf4a18b5412f5ec8ade338248751df8b60a9a149052481103191d6c610d829eec3e11b92992980b936f24dd819d6db21636c5c32cbda2dcafb02
|
7
|
+
data.tar.gz: b7650e855730492bb34fd9b1f431a47118c560b7567770d86f379f683b3fd929284ac787192fae6610b51ece6b585ce8cb8780bac321070f2cee26740128e4df
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
@@ -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
|
37
|
-
"#{phase} (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"
|
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.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-
|
12
|
+
date: 2018-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|