kubernetes-deploy 0.9.2 → 0.9.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f957b471692e6ab3020ab729e76b02544e63857e
|
|
4
|
+
data.tar.gz: 32051ea0acada35ba395fe7075faa3bb2ccb51c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b3418099ae88193d13948f178968ae432d08860b569c8831985aff46740da265b277b3c10cfd759a387e1163193849ecb10907e9a55368d9919f25395cd7041
|
|
7
|
+
data.tar.gz: 34a8799cb0c017d2fa49fe5b0fea72783955b624eeee66bc6d1a537799ca3d17603821e49c631faa5bcbcb60971a21c87caef89197b9c812075c842193ab186e
|
|
@@ -14,6 +14,7 @@ module KubernetesDeploy
|
|
|
14
14
|
@rollout_data = { "replicas" => 0 }.merge(deployment_data["status"]
|
|
15
15
|
.slice("replicas", "updatedReplicas", "availableReplicas", "unavailableReplicas"))
|
|
16
16
|
@status = @rollout_data.map { |state_replicas, num| "#{num} #{state_replicas.chop.pluralize(num)}" }.join(", ")
|
|
17
|
+
@progress = deployment_data["status"]["conditions"].find { |condition| condition['type'] == 'Progressing' }
|
|
17
18
|
else # reset
|
|
18
19
|
@latest_rs = nil
|
|
19
20
|
@rollout_data = { "replicas" => 0 }
|
|
@@ -50,11 +51,20 @@ module KubernetesDeploy
|
|
|
50
51
|
end
|
|
51
52
|
|
|
52
53
|
def timeout_message
|
|
53
|
-
@
|
|
54
|
+
progress_seconds = @definition['spec']['progressDeadlineSeconds']
|
|
55
|
+
if progress_seconds
|
|
56
|
+
"Deploy timed out due to progressDeadlineSeconds of #{progress_seconds} seconds. #{@latest_rs.timeout_message}"
|
|
57
|
+
else
|
|
58
|
+
@latest_rs.timeout_message
|
|
59
|
+
end
|
|
54
60
|
end
|
|
55
61
|
|
|
56
62
|
def deploy_timed_out?
|
|
57
|
-
|
|
63
|
+
if @progress
|
|
64
|
+
@progress["status"] == 'False'
|
|
65
|
+
else
|
|
66
|
+
super || @latest_rs && @latest_rs.deploy_timed_out?
|
|
67
|
+
end
|
|
58
68
|
end
|
|
59
69
|
|
|
60
70
|
def exists?
|
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.9.
|
|
4
|
+
version: 0.9.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: 2017-07-
|
|
12
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|