kuber_kit 1.2.6 → 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: 536f630ab67b2695dfcbde31648ae12a22445bf2918c415ce43984631dfaf27a
4
- data.tar.gz: b2994f8e2cd1ccede7c9e18c0b519e7492f5548c3ac0a08ae73d17989ae050ef
3
+ metadata.gz: cd7d5abd9465de05ab9c906588764edf855660b2ce2866d41d36ee5bbcf222a0
4
+ data.tar.gz: beb7e47b16c3076ade6b34de4e8c41806b832aad291db2b58a651407db53f768
5
5
  SHA512:
6
- metadata.gz: a8c64a620e1c418c9079cec7e372ee025af8d694c42752584730b26f4839b559136247f21f172040c90c6c181b34d25a52698f73fe7962428f73d0f3d557498f
7
- data.tar.gz: 5a5cc0c62d3f94c8bc91b90caa4e4c98c63cef520ce8b15d9d673cc5abc3e0067731cb492f1a9dc041a789d56f0b67cfafee25d1054eaa8acb3884bb15d51616
6
+ metadata.gz: da1808570e50ca73338d5055c41405d7f950a6d329d5cbe4663afe6ff9381f000c3339205407be0ee5437be1e4aafcfa3da7fdb5abb97ae6405616be44a27932
7
+ data.tar.gz: 3deccb2c4b267f3222b8bf1235c12406ef0df0100782c2f645deabeffd104da02be461079243a8d6aed607188a0086653815bcaca053a1b219d6c361ac756d91
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ **1.2.7**
2
+ - Added an option to skip deployment and only build images for `deploy` command
3
+
1
4
  **1.2.6**
2
5
  - Lock cli-ui version on 2.1.0 (2.2.x has some bugs)
3
6
 
@@ -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.6"
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.6
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-04-26 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