kuber_kit 0.9.5 → 0.9.8

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: 6f981c4a56cdd8e79c87d9ad0005930ddf68f54df5208be13bceaeeab48e935d
4
- data.tar.gz: daf378968fba31265645d1e3695f42b0682c9335413cce1e43d28df0545ea458
3
+ metadata.gz: 63fe40fb4674dd8e0fcad748f502d541f4fad27662b481a71647766f086c3d3f
4
+ data.tar.gz: c1f4966e67d11cf860a4822846dcdde18cc2ca9651b8233d448cc225e12dbf25
5
5
  SHA512:
6
- metadata.gz: 599602af81d2936fe7d0a2629bc758ae3dfd83d20cc408bb2a23f6cf4eb1cfcee236587f6f23e30406a34d6e4f7adb02fb8bc4a3033d3fa2ef21f22b269deef7
7
- data.tar.gz: b5e95e8abbbae885b7fa3c0ab010673a55ab57b36e7badb25f477a22812788783591d020684b03f2c3d03f88d41e9d0724312d53ec3a50dcb65047b1e32b3d01
6
+ metadata.gz: a436fd78bd994fe89bbddd28b2a093286922aaace1718a5b7c0cbe568d48c0ddfe1dfd0badf2fdd7f0bdfa15a9fb7e4bbc6c19c3e25e80b4b4ef2a8d58b2c1e5
7
+ data.tar.gz: 3b33b8f312664f1417c4f1bef6e23993ca69c98688ed276e1a4f8334ab0a7e940a912793a8f330cdfe0222276f482aa3b6155eb7905c40bfb19ce2e30dbe28c7
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- **0.9.0-0.9.4**
1
+ **0.9.0-0.9.8**
2
2
  - Allow skipping confirmation during deployment
3
3
  - Added `kit sh` command to create a new shell
4
4
  - Use tmp dir as image builds parent dir for remote compilation
@@ -59,7 +59,7 @@ class KuberKit::Shell::LocalShell < KuberKit::Shell::AbstractShell
59
59
  end
60
60
 
61
61
  def replace!(shell_name: nil, env: [], log_command: true)
62
- shell_name ||= "$SHELL"
62
+ shell_name ||= "$SHELL --login"
63
63
  command = (env + [shell_name]).join(" ")
64
64
 
65
65
  if log_command
@@ -17,6 +17,6 @@ class KuberKit::ShellLauncher::Strategies::Kubernetes < KuberKit::ShellLauncher:
17
17
  kubectl_commands.set_namespace(shell, deployer_namespace, kubeconfig_path: kubeconfig_path)
18
18
  end
19
19
 
20
- shell.replace!(env: ["KUBECONFIG=#{kubeconfig_path}"])
20
+ shell.replace!(env: ["KUBECONFIG=#{kubeconfig_path}", "KUBER_KIT_SHELL_CONFIGURATION=#{KuberKit.current_configuration.name}"])
21
21
  end
22
22
  end
@@ -1,6 +1,7 @@
1
1
  class KuberKit::Tools::BuildDirCleaner
2
2
  include KuberKit::Import[
3
3
  "shell.bash_commands",
4
+ "ui"
4
5
  ]
5
6
 
6
7
  KEEP_DIRS_COUNT = 10
@@ -11,7 +12,11 @@ class KuberKit::Tools::BuildDirCleaner
11
12
 
12
13
  dirs_to_delete.each do |dir|
13
14
  bash_commands.rm_rf(shell, dir)
15
+ rescue KuberKit::Shell::AbstractShell::ShellError => e
16
+ ui.print_debug "BuildDirCleaner", "Error while removing directory: #{e.inspect}"
14
17
  end
18
+ rescue KuberKit::Shell::AbstractShell::DirNotFoundError
19
+ ui.print_debug "BuildDirCleaner", "Build directory not found"
15
20
  end
16
21
 
17
22
  private
@@ -1,3 +1,3 @@
1
1
  module KuberKit
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.8"
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: 0.9.5
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Khaziev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-03 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts