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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eed75bcad069720e6c7c9d44555af98924edca18
|
4
|
+
data.tar.gz: 0f83407244b6b0f63ebceb7dffe92dccefa44f3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a13bc984fae5dd38639ab6ad8c0a4c3d69b6dd776f117ede5b47f05fa80199e59c8da0d6be6b35ca43455e8d1a9e4dd839932ca3f7db12983c247d940e4e9220
|
7
|
+
data.tar.gz: 2412db53a8791bad8debfdf5bae2cfde075e49bbb725995fd972ce49b6936469db5281bb95befba25885e06cd45819002eb27af16237934d554494fac54ba4d2
|
data/kubernetes-deploy.gemspec
CHANGED
@@ -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"
|
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 = :
|
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}").
|
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).
|
31
|
+
part3 = ColorizedString.new('-' * padding.ceil).light_blue
|
32
32
|
info(part1 + part2 + part3)
|
33
33
|
end
|
34
34
|
|
@@ -113,7 +113,16 @@ module KubernetesDeploy
|
|
113
113
|
|
114
114
|
deploy_resources(resources, prune: prune)
|
115
115
|
|
116
|
-
|
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?)
|
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.
|
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: '
|
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: '
|
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.
|
236
|
+
rubygems_version: 2.5.2
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: Kubernetes deploy scripts
|