kubernetes-deploy 0.7.1 → 0.7.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: 706f5bf88a16c2fe71ae198686ef0784a9969237
4
- data.tar.gz: 020bb9952c382c536294708480a43da223ba22a3
3
+ metadata.gz: eed75bcad069720e6c7c9d44555af98924edca18
4
+ data.tar.gz: 0f83407244b6b0f63ebceb7dffe92dccefa44f3b
5
5
  SHA512:
6
- metadata.gz: 6563b2fe8012fd211712a945d52711f5400275dd13e0dfdde4bc0a18732b25cc6d03ef98cab39ebcb76609f2f8fa04a1f8e95e36307f7c3b986c0430b74973e2
7
- data.tar.gz: e4d3b79b85956a16ce5584d776638932f72fedeecca5cc9f8b47c8d533fce32fc15202ab1a6bf583aefec68ddea388d098fbc1e93f2f4453e737d4b7d90bf849
6
+ metadata.gz: a13bc984fae5dd38639ab6ad8c0a4c3d69b6dd776f117ede5b47f05fa80199e59c8da0d6be6b35ca43455e8d1a9e4dd839932ca3f7db12983c247d940e4e9220
7
+ data.tar.gz: 2412db53a8791bad8debfdf5bae2cfde075e49bbb725995fd972ce49b6936469db5281bb95befba25885e06cd45819002eb27af16237934d554494fac54ba4d2
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "ejson", "1.0.1"
27
27
  spec.add_dependency "colorize", "~> 0.8"
28
28
 
29
- spec.add_development_dependency "bundler", "~> 1.13"
29
+ spec.add_development_dependency "bundler"
30
30
  spec.add_development_dependency "rake", "~> 10.0"
31
31
  spec.add_development_dependency "minitest", "~> 5.0"
32
32
  spec.add_development_dependency "minitest-stub-const", "~> 0.6"
@@ -23,12 +23,12 @@ module KubernetesDeploy
23
23
  heading("Phase #{@current_phase}: #{phase_name}")
24
24
  end
25
25
 
26
- def heading(text, secondary_msg = '', secondary_msg_color = :blue)
26
+ def heading(text, secondary_msg = '', secondary_msg_color = :light_blue)
27
27
  padding = (100.0 - (text.length + secondary_msg.length)) / 2
28
28
  blank_line
29
- part1 = ColorizedString.new("#{'-' * padding.floor}#{text}").blue
29
+ part1 = ColorizedString.new("#{'-' * padding.floor}#{text}").light_blue
30
30
  part2 = ColorizedString.new(secondary_msg).colorize(secondary_msg_color)
31
- part3 = ColorizedString.new('-' * padding.ceil).blue
31
+ part3 = ColorizedString.new('-' * padding.ceil).light_blue
32
32
  info(part1 + part2 + part3)
33
33
  end
34
34
 
@@ -78,7 +78,7 @@ module KubernetesDeploy
78
78
  out, _err, _st = kubectl.run(
79
79
  "logs",
80
80
  @name,
81
- "--timestamps=true",
81
+ "--container=#{container_name}",
82
82
  "--since-time=#{@deploy_started.to_datetime.rfc3339}"
83
83
  )
84
84
  container_logs["#{id}/#{container_name}"] = out
@@ -113,7 +113,16 @@ module KubernetesDeploy
113
113
 
114
114
  deploy_resources(resources, prune: prune)
115
115
 
116
- return true unless verify_result
116
+ unless verify_result
117
+ @logger.summary.add_action("deployed #{resources.length} #{'resource'.pluralize(resources.length)}")
118
+ warning = <<-MSG.strip_heredoc
119
+ Deploy result verification is disabled for this deploy.
120
+ This means the desired changes were communicated to Kubernetes, but the deploy did not make sure they actually succeeded.
121
+ MSG
122
+ @logger.summary.add_paragraph(ColorizedString.new(warning).yellow)
123
+ return success = true
124
+ end
125
+
117
126
  wait_for_completion(resources)
118
127
  record_statuses(resources)
119
128
  success = resources.all?(&:deploy_succeeded?)
@@ -1,3 +1,3 @@
1
1
  module KubernetesDeploy
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.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.7.1
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kir Shatrov
@@ -86,16 +86,16 @@ dependencies:
86
86
  name: bundler
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - "~>"
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: '1.13'
91
+ version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - "~>"
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: '1.13'
98
+ version: '0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: rake
101
101
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.5.1
236
+ rubygems_version: 2.5.2
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Kubernetes deploy scripts