kuber_kit 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2164864d55b65ebdd1c62b766b16b3837ad7c3f676380a58b6f60b492b9eb0cd
|
4
|
+
data.tar.gz: 4517a27f92f73b1732bc7e7c200a0a6e037523fe07c6652f06f534a10266e0f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 919f25e6aac48e750283df32a25a29a56e9c0111fefd7be084d9382478a79348a8072c381ee4f2a8bd95fc1f77ea3b7345904d1d260d4a1ee6820f131f453cd6
|
7
|
+
data.tar.gz: 441083ec69f68ad88e806c0e7ad95ad16a91547140f8649949187c088f778e1055c5e42c3b2813f9d4ff7557bacbdc65bb0ed3becdab36e5c7ffdc079d36eaea
|
data/Gemfile.lock
CHANGED
@@ -4,12 +4,15 @@ class KuberKit::ImageCompiler::BuildServerPool
|
|
4
4
|
def initialize(local_shell:, build_servers:, ssh_shell_class:)
|
5
5
|
@local_shell = local_shell
|
6
6
|
@ssh_shell_class = ssh_shell_class
|
7
|
-
@
|
7
|
+
@build_servers = build_servers
|
8
|
+
@ssh_shells = []
|
8
9
|
end
|
9
10
|
|
10
11
|
def get_shell
|
11
|
-
if @
|
12
|
-
@
|
12
|
+
if @build_servers.any?
|
13
|
+
shell = connect_to_ssh_shell(@build_servers.sample)
|
14
|
+
@ssh_shells << shell
|
15
|
+
shell
|
13
16
|
else
|
14
17
|
@local_shell
|
15
18
|
end
|
@@ -20,11 +23,9 @@ class KuberKit::ImageCompiler::BuildServerPool
|
|
20
23
|
end
|
21
24
|
|
22
25
|
private
|
23
|
-
def
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
shell
|
28
|
-
end
|
26
|
+
def connect_to_ssh_shell(bs)
|
27
|
+
shell = @ssh_shell_class.new
|
28
|
+
shell.connect(host: bs.host, user: bs.user, port: bs.port)
|
29
|
+
shell
|
29
30
|
end
|
30
31
|
end
|
@@ -41,7 +41,7 @@ class KuberKit::Shell::Commands::KubectlCommands
|
|
41
41
|
kubectl_run(shell, command_parts, kubeconfig_path: kubeconfig_path, interactive: interactive, namespace: namespace)
|
42
42
|
end
|
43
43
|
|
44
|
-
def rolling_restart(shell, deployment_name, kubeconfig_path: nil, namespace:
|
44
|
+
def rolling_restart(shell, deployment_name, kubeconfig_path: nil, namespace: nil)
|
45
45
|
patch_deployment(shell, deployment_name, {
|
46
46
|
spec: {
|
47
47
|
template: {
|
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: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Khaziev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contracts-lite
|