kuber_kit 0.5.9 → 0.5.10

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: fa75f8b61926a3178d1592ceb81a35945a073b38d34c80c246872bae6b357d1f
4
- data.tar.gz: fc41c9917961f9bff18ac03a60a16a77f094deae51abc6e28d80524fab793968
3
+ metadata.gz: 790b99f8456fde1e3c0f8f81308e6bcd7d6c8d6b4e274da4f667f0297f703b2a
4
+ data.tar.gz: 6102f785babd0ba638f46b9edc0d2d2740d60bcc7d3a4dd81a8a9e210aa2dc5a
5
5
  SHA512:
6
- metadata.gz: 7cb947b2cf303ef0f04a77364c0b6ea4043b2cf6f2b29cea0da1cd5d2808c7f2103799ad711e191e859bce59177372ac795460a1ed13589a6f62f536f4b23eb0
7
- data.tar.gz: 324b1de9e8e762a5bce7bebf29ff9cc0317814f924be886fd10434f2ed2ffc8376025200f7ed2e35e2300bbbb2968061775c6e1f1c07f4a0ad2a61038225e66f
6
+ metadata.gz: c61ead9e24a6f88c1ae0e8a517eb030b035d8ce68c1babefcb0de9b4a36a8638f41f57a47000f75cd2f681c4e3086477a2afd9113d5e9850bce7ad3242c2c0aa
7
+ data.tar.gz: 96436dd5394baff8c2a8a2fe285909b4474df72f8548bfbecd0a2a9c28f2e6e763b0beec8b9d0ecaa6f12e69ca5c8c40974e16d1bf060911f6cf400f36a6eabc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ **0.5.10**
2
+ - Fix a regression when deployment result would not be properly returned as json.
3
+
1
4
  **0.5.9**
2
5
  - Added an ability to set custom user
3
6
  - Allow setting environment variable in docker strategy
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kuber_kit (0.5.9)
4
+ kuber_kit (0.5.10)
5
5
  cli-ui
6
6
  contracts-lite
7
7
  dry-auto_inject (~> 0.7.0)
data/TODO.md CHANGED
@@ -1,8 +1,7 @@
1
- - add kit get method for more interactive kubernetes
1
+ - cleanup image builds older than some date
2
+ - add some rotation for deploy log
2
3
  - env files should use a separate deployment method (with change detection)
3
4
  - add automatical confirmation support for service deployer
4
5
  - template should be able to set default attributes
5
6
  - template should be able to depend on image?
6
- - cleanup image builds older than some date
7
- - add some rotation for deploy log
8
7
  - kit status should show the list of services and their status, with ability to select & view logs
@@ -1,8 +1,8 @@
1
1
  class KuberKit::Actions::ActionResult
2
- attr_reader :finished_tasks, :result, :error
2
+ attr_reader :finished_tasks, :all_results, :error
3
3
 
4
4
  def initialize()
5
- @results = {}
5
+ @all_results = {}
6
6
  @started_tasks = []
7
7
  @finished_tasks = []
8
8
  @mutex = Mutex.new
@@ -14,11 +14,11 @@ class KuberKit::Actions::ActionResult
14
14
  end
15
15
  end
16
16
 
17
- def finish_task(task, result)
17
+ def finish_task(task, result = nil)
18
18
  @mutex.synchronize do
19
19
  @started_tasks.delete(task)
20
20
  @finished_tasks.push(task)
21
- @results[task] = result
21
+ @all_results[task] = result
22
22
  end
23
23
  end
24
24
 
data/lib/kuber_kit/cli.rb CHANGED
@@ -27,7 +27,7 @@ class KuberKit::CLI < Thor
27
27
  time = (Time.now.to_i - started_at)
28
28
  print_result("Image compilation finished! (#{time}s)", result: {
29
29
  images: action_result.finished_tasks,
30
- compilation: action_result.result
30
+ compilation: action_result.all_results
31
31
  })
32
32
  else
33
33
  exit 1
@@ -61,7 +61,7 @@ class KuberKit::CLI < Thor
61
61
  time = (Time.now.to_i - started_at)
62
62
  print_result("Service deployment finished! (#{time}s)", result: {
63
63
  services: action_result.finished_tasks,
64
- deployment: action_result.result
64
+ deployment: action_result.all_results
65
65
  })
66
66
  else
67
67
  exit 1
@@ -1,3 +1,3 @@
1
1
  module KuberKit
2
- VERSION = "0.5.9"
2
+ VERSION = "0.5.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuber_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Khaziev