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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf57924285ae666f588c17e429237e45bf7fc1666683354a4b55de25592a994f
4
- data.tar.gz: f8b7bcf9bcc1d82f9f3489d1d2b6763f281ca0398ef494b78ae11054c4c35019
3
+ metadata.gz: cd7d5abd9465de05ab9c906588764edf855660b2ce2866d41d36ee5bbcf222a0
4
+ data.tar.gz: beb7e47b16c3076ade6b34de4e8c41806b832aad291db2b58a651407db53f768
5
5
  SHA512:
6
- metadata.gz: ed268c5ca27198e9b9842d6f706f83cf83506e9abf8bb95bb23ed97a439b7ae8e9c867c6f88a2ad3a35a9cc2b8e969adbdd88363257e55f02b445f4075df933c
7
- data.tar.gz: d2480528964184aadd99b9697898dcbc0da94cb7e8deac75496ea0bf7b47e7013c6c1824f897b4eb46b56b9ba954075b1740bc7ac3bc9ae9bb3d62b60dd2ce64
6
+ metadata.gz: da1808570e50ca73338d5055c41405d7f950a6d329d5cbe4663afe6ff9381f000c3339205407be0ee5437be1e4aafcfa3da7fdb5abb97ae6405616be44a27932
7
+ data.tar.gz: 3deccb2c4b267f3222b8bf1235c12406ef0df0100782c2f645deabeffd104da02be461079243a8d6aed607188a0086653815bcaca053a1b219d6c361ac756d91
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ **1.2.7**
2
+ - Added an option to skip deployment and only build images for `deploy` command
3
+
4
+ **1.2.6**
5
+ - Lock cli-ui version on 2.1.0 (2.2.x has some bugs)
6
+
1
7
  **1.2.5**
2
8
  - Improve handling ContextVars, ability to convert context var to OpenStruct
3
9
 
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.2 |
23
- | > 3.0 | 1.2.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
@@ -1,3 +1,3 @@
1
1
  module KuberKit
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.7"
3
3
  end
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.5
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-03-10 00:00:00.000000000 Z
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: '0'
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: '0'
110
+ version: 2.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: net-ssh
113
113
  requirement: !ruby/object:Gem::Requirement