kubernetes-deploy 0.9.2 → 0.9.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: d94a22a6a4282f8185775bc7bdf68e7278992071
4
- data.tar.gz: ea8088bedce06afec59ffaa60c89ab6afdb0de33
3
+ metadata.gz: f957b471692e6ab3020ab729e76b02544e63857e
4
+ data.tar.gz: 32051ea0acada35ba395fe7075faa3bb2ccb51c2
5
5
  SHA512:
6
- metadata.gz: f7ae78edcf9a256b84d20e437ed69897582fd25da17a87a97dbdf537fd463509a4405e69430faaec6008c6bc3f31b58fd0b25764423a3c957a1920ee7147aac4
7
- data.tar.gz: 7ccfe566c8a801968517cce5f160e2862f68d223380dcebb05c646265b1306a72331e8b940b51ecdecd101f17a00cb6de0a05e61be122d3b642985bfbd3762f5
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
- @latest_rs.timeout_message
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
- super || @latest_rs && @latest_rs.deploy_timed_out?
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?
@@ -1,3 +1,3 @@
1
1
  module KubernetesDeploy
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  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.9.2
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-19 00:00:00.000000000 Z
12
+ date: 2017-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport