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 +4 -4
- data/Gemfile.lock +3 -2
- data/lib/activek8s/version.rb +1 -1
- data/lib/tasks/deploy.rake +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5014aa08d2859cf1ebe6f68ae31938283724cee5e4574b0becd05962e9eba4
|
4
|
+
data.tar.gz: aad86119eafbd5cc187fdf0222f8acc4015e8d96e94428c145b7bb5050cce04e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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)
|
data/lib/activek8s/version.rb
CHANGED
data/lib/tasks/deploy.rake
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2019-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: childprocess
|