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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29573aea8ad1792ad61ec614c01d86b8a1a4b42c
4
- data.tar.gz: c626801864c77a1879d922c9140c16f1e8d203d6
3
+ metadata.gz: 7991ac5b3de51ea24a9f2db1da671d5ea8e89e40
4
+ data.tar.gz: 64c593a2d621275fa402fde1c27b7ed2b13f48d9
5
5
  SHA512:
6
- metadata.gz: 4ba1893e0ff7cdf82eaffec1ded3cd3efe46409f0c05d8e9a2f67cca6f0777798f8184351c64bd922de651a2ef51b78d480edf677741a0b6cb392b1fee102156
7
- data.tar.gz: 12761dfb12a052f1cc8971e10c881c36fcdfb4c69c7bb8aa492fa6b36b4b6e5f9a23cb47b53030097af21438fa2489ac04f7c0cb29e97fabde293ecc94ee9157
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
- KubernetesDeploy.logger.warn(err) unless st.success?
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
 
@@ -1,3 +1,3 @@
1
1
  module KubernetesDeploy
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
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-01 00:00:00.000000000 Z
13
+ date: 2017-02-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport