kubernetes-deploy 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kubernetes-deploy/runner.rb +6 -2
- 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: 7991ac5b3de51ea24a9f2db1da671d5ea8e89e40
|
4
|
+
data.tar.gz: 64c593a2d621275fa402fde1c27b7ed2b13f48d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2239c59b22d1f67a7475dedf69dc83a56a3cc2cb06940fed9d22818cdbccf315cf71ea25461d753382b3c3aa8eb94a45de54268218ec920e28276f5cfddfef26
|
7
|
+
data.tar.gz: eb7d61a8506fd22cf3bd3ce82b4d3edd357c1c28395b481c3c838e2045a8f01163150439300c67b3dd89846fad4a432138ec119f6b36ceef06549c219aa9d33a
|
@@ -241,13 +241,14 @@ MSG
|
|
241
241
|
end
|
242
242
|
|
243
243
|
def deploy_resources(resources, prune: false)
|
244
|
-
command = ["apply"]
|
245
244
|
KubernetesDeploy.logger.info("Deploying resources:")
|
246
245
|
|
247
246
|
# TPRs must use update for now: https://github.com/kubernetes/kubernetes/issues/39906
|
248
247
|
tprs, resources = resources.partition(&:tpr?)
|
249
248
|
update_tprs(tprs)
|
249
|
+
return unless resources.present?
|
250
250
|
|
251
|
+
command = ["apply"]
|
251
252
|
resources.each do |r|
|
252
253
|
KubernetesDeploy.logger.info("- #{r.id}")
|
253
254
|
command.push("-f", r.file.path)
|
@@ -291,7 +292,10 @@ MSG
|
|
291
292
|
KubernetesDeploy.logger.debug Shellwords.join(args)
|
292
293
|
out, err, st = Open3.capture3(*args)
|
293
294
|
KubernetesDeploy.logger.debug(out.shellescape)
|
294
|
-
|
295
|
+
unless st.success?
|
296
|
+
KubernetesDeploy.logger.warn("The following command failed: #{Shellwords.join(args)}")
|
297
|
+
KubernetesDeploy.logger.warn(err)
|
298
|
+
end
|
295
299
|
[out.chomp, err.chomp, st]
|
296
300
|
end
|
297
301
|
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kir Shatrov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-02-
|
13
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|