kuber_kit 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/TODO.md +2 -3
- data/lib/kuber_kit/actions/action_result.rb +4 -4
- data/lib/kuber_kit/cli.rb +2 -2
- data/lib/kuber_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 790b99f8456fde1e3c0f8f81308e6bcd7d6c8d6b4e274da4f667f0297f703b2a
|
4
|
+
data.tar.gz: 6102f785babd0ba638f46b9edc0d2d2740d60bcc7d3a4dd81a8a9e210aa2dc5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c61ead9e24a6f88c1ae0e8a517eb030b035d8ce68c1babefcb0de9b4a36a8638f41f57a47000f75cd2f681c4e3086477a2afd9113d5e9850bce7ad3242c2c0aa
|
7
|
+
data.tar.gz: 96436dd5394baff8c2a8a2fe285909b4474df72f8548bfbecd0a2a9c28f2e6e763b0beec8b9d0ecaa6f12e69ca5c8c40974e16d1bf060911f6cf400f36a6eabc
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/TODO.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
-
|
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, :
|
2
|
+
attr_reader :finished_tasks, :all_results, :error
|
3
3
|
|
4
4
|
def initialize()
|
5
|
-
@
|
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
|
-
@
|
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.
|
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.
|
64
|
+
deployment: action_result.all_results
|
65
65
|
})
|
66
66
|
else
|
67
67
|
exit 1
|
data/lib/kuber_kit/version.rb
CHANGED