kuber_kit 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/kuber_kit.gemspec +1 -1
- data/lib/kuber_kit/actions/service_deployer.rb +7 -1
- data/lib/kuber_kit/cli.rb +2 -0
- data/lib/kuber_kit/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7d5abd9465de05ab9c906588764edf855660b2ce2866d41d36ee5bbcf222a0
|
4
|
+
data.tar.gz: beb7e47b16c3076ade6b34de4e8c41806b832aad291db2b58a651407db53f768
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da1808570e50ca73338d5055c41405d7f950a6d329d5cbe4663afe6ff9381f000c3339205407be0ee5437be1e4aafcfa3da7fdb5abb97ae6405616be44a27932
|
7
|
+
data.tar.gz: 3deccb2c4b267f3222b8bf1235c12406ef0df0100782c2f645deabeffd104da02be461079243a8d6aed607188a0086653815bcaca053a1b219d6c361ac756d91
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -19,8 +19,8 @@ Please install specific kuber_kit version, depending on Ruby version.
|
|
19
19
|
| Ruby Version | KuberKit Version |
|
20
20
|
| ------------ | ------------ |
|
21
21
|
| 2.6 | 1.0.1 |
|
22
|
-
| 2.7 | 1.1.
|
23
|
-
| > 3.0 | 1.2.
|
22
|
+
| 2.7 | 1.1.3 |
|
23
|
+
| > 3.0 | 1.2.6 |
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
data/kuber_kit.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_dependency "dry-container", "~> 0.10.1"
|
34
34
|
|
35
35
|
spec.add_dependency "thor"
|
36
|
-
spec.add_dependency "cli-ui"
|
36
|
+
spec.add_dependency "cli-ui", '2.1.0'
|
37
37
|
spec.add_dependency "net-ssh"
|
38
38
|
spec.add_dependency "tty-prompt"
|
39
39
|
|
@@ -18,9 +18,10 @@ class KuberKit::Actions::ServiceDeployer
|
|
18
18
|
skip_services: Maybe[ArrayOf[String]],
|
19
19
|
skip_compile: Maybe[Bool],
|
20
20
|
skip_dependencies: Maybe[Bool],
|
21
|
+
skip_deployment: Maybe[Bool],
|
21
22
|
require_confirmation: Maybe[Bool],
|
22
23
|
] => Any
|
23
|
-
def call(services:, tags:, skip_services: nil, skip_compile: false, skip_dependencies: false, require_confirmation: false)
|
24
|
+
def call(services:, tags:, skip_services: nil, skip_compile: false, skip_dependencies: false, skip_deployment: false, require_confirmation: false)
|
24
25
|
deployment_result = KuberKit::Actions::ActionResult.new()
|
25
26
|
current_configuration = KuberKit.current_configuration
|
26
27
|
|
@@ -66,6 +67,11 @@ class KuberKit::Actions::ServiceDeployer
|
|
66
67
|
return false unless compilation_result && compilation_result.succeeded?
|
67
68
|
end
|
68
69
|
|
70
|
+
# Skip service deployment, only compile images.
|
71
|
+
if skip_deployment
|
72
|
+
return deployment_result
|
73
|
+
end
|
74
|
+
|
69
75
|
# First deploy initial services.
|
70
76
|
# This feature is used to deploy some services, required for deployment of other services, e.g. env files
|
71
77
|
# Note: Initial services are deployed without dependencies
|
data/lib/kuber_kit/cli.rb
CHANGED
@@ -43,6 +43,7 @@ class KuberKit::CLI < Thor
|
|
43
43
|
method_option :skip_dependencies, :type => :boolean, aliases: ["-D"]
|
44
44
|
method_option :require_confirmation, :type => :boolean, aliases: ["-r"]
|
45
45
|
method_option :skip_confirmation, :type => :boolean, aliases: ["-R"]
|
46
|
+
method_option :skip_deployment, :type => :boolean, aliases: ["-K"]
|
46
47
|
def deploy
|
47
48
|
setup(options)
|
48
49
|
|
@@ -58,6 +59,7 @@ class KuberKit::CLI < Thor
|
|
58
59
|
skip_services: (options[:skip_services] || []).flatten.uniq,
|
59
60
|
skip_compile: options[:skip_compile] || false,
|
60
61
|
skip_dependencies: options[:skip_dependencies] || false,
|
62
|
+
skip_deployment: options[:skip_deployment] || false,
|
61
63
|
require_confirmation: require_confirmation
|
62
64
|
)
|
63
65
|
end
|
data/lib/kuber_kit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuber_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Khaziev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contracts
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: cli-ui
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 2.1.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 2.1.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: net-ssh
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|