activek8s 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: a3bd9861144b112f2b3eb00a2fc5c4e682033671089040b108dd706c965b85b1
4
- data.tar.gz: 3c3a5757964a193ee0e37a9e381f98af7ce286ee01569e4a1eb1146f8e0a697f
3
+ metadata.gz: 7e5014aa08d2859cf1ebe6f68ae31938283724cee5e4574b0becd05962e9eba4
4
+ data.tar.gz: aad86119eafbd5cc187fdf0222f8acc4015e8d96e94428c145b7bb5050cce04e
5
5
  SHA512:
6
- metadata.gz: ddfbf11563cd7d2c368f0f6a5e6ad04fa5e99647e9b68552218903d4192445609ae1bdfd874c586094da68ff3456d56642f59ae4dc068a568369bc256d4c28e0
7
- data.tar.gz: 3284b5dc22fda2e5486ab2890db298adc0d7cc1fc6584f272487447ffbfb89da56025d0885ebe2a5b635e313a9e734964953ecd9bc5c45f9b3768411e146512b
6
+ metadata.gz: e9b1280263126ee9e11c9e1ec27876eb1aee4c1369a39c73fb9edd9e5c8f0f9d3d2eff6012a25aad81fc824e9320c97397c2c6427c41cd3379ce029f06624a37
7
+ data.tar.gz: 70a8aa1d6cd728f2df2e904267a9f1f5ba3f7ec6d6cf29c7a6aa95493355672d810cd7bbeecd494ab009be8a3c7a3ff0c6c62991ee50ea4a0f1f70ca30c2e492
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activek8s (0.2.1)
4
+ activek8s (0.2.2)
5
5
  childprocess (~> 1.0.0)
6
6
 
7
7
  GEM
@@ -9,7 +9,8 @@ GEM
9
9
  specs:
10
10
  ast (2.4.0)
11
11
  byebug (10.0.2)
12
- childprocess (1.0.0)
12
+ childprocess (1.0.1)
13
+ rake (< 13.0)
13
14
  coderay (1.1.2)
14
15
  diff-lcs (1.3)
15
16
  docile (1.3.1)
@@ -1,3 +1,3 @@
1
1
  module Activek8s
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
@@ -2,8 +2,15 @@ namespace 'k8s' do
2
2
  desc 'Deploys the current microservice TAG version on a specific NAMESPACE'
3
3
  task :deploy, [:namespace, :tag, :cleanup] do |_t, args|
4
4
  deployment_path = ENV['K8S_DEPLOYMENT_FILE'] || 'kube/last_deployment.yml'
5
+ puts "[K8S DEBUG DEPLOYMENT: #{deployment_path}]" unless ENV['K8S_DEBUG'].nil?
5
6
  Rake::Task['k8s:build_deployment'].invoke(args.namespace, args.tag)
6
7
 
8
+ unless ENV['K8S_DEBUG'].nil?
9
+ puts '[K8S DEBUG DEPLOYMENT FILE]'
10
+ puts File.read(deployment_path)
11
+ puts '[/K8S DEBUG DEPLOYMENT FILE]'
12
+ end
13
+
7
14
  sh %{kubectl apply -f #{deployment_path}} do |ok, res|
8
15
  cleanup = args.cleanup && File.exist?(deployment_path)
9
16
  File.delete(deployment_path) if cleanup
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activek8s
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Valverde Arredondo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-01 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess