kuber_kit 0.8.1 → 0.8.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: 665f3cb54625585e4c186776ca0bdf3d3a230636c637b8b5c969c46a47e2680d
4
- data.tar.gz: 789b513ad128c9b31e05896638a5da988a3eccfb672f4535718e3f07c0c63585
3
+ metadata.gz: 7d37959e170cf0ae0f88daa765fed03f52d3df930a05f8130fccbd2d6b68468d
4
+ data.tar.gz: 89610ec982168e4bad20d1688b792d60f95174e9a3d8d420bc7a257db6889b86
5
5
  SHA512:
6
- metadata.gz: 5cb6912033a27da36b85872b39d14f8a1bf7081b546c80f29f2fe69f86ecfb0dc84ea77f2771a0f2cdd237cf1a1e6c0a993f2f74acbeac5ec3078ed1fd1d26ca
7
- data.tar.gz: de099ce2d2c96b566942ef7440f8d09afc81ce3f0a9a693862ab6d710e4706abad5114fb02ab2400cd42e00a261eab5c0cfd778fe707b486f14cbaf7f872e717
6
+ metadata.gz: f6d6dbe6c69bb428b7b528bcfed76d1619abd1b8253bd2a2c069a657e487db6444cdfa65a6ec8e896bb691b688dcb4a5dfcd1a024bf657c29ad77b0eb40b5cc5
7
+ data.tar.gz: 758e908ce338e9effb8d9e1740e200ee69b64b22154436c6548635eca3ffcd39c1ee634c94850741cecb629558a875055afc85434ba45adeccecc29e209a8f3e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ **0.8.2**
2
+ - Update Kit Env command to support kubeconfig path as artifact
3
+
1
4
  **0.8.1**
2
5
  - Allow deploying services without dependecies
3
6
  - Default services should be first in the list
@@ -1,5 +1,6 @@
1
1
  class KuberKit::Actions::KubectlEnv
2
2
  include KuberKit::Import[
3
+ "core.artifact_path_resolver",
3
4
  "shell.local_shell",
4
5
  "ui"
5
6
  ]
@@ -8,6 +9,11 @@ class KuberKit::Actions::KubectlEnv
8
9
  def call(options)
9
10
  configuration = KuberKit.current_configuration
10
11
  kubeconfig_path = configuration.kubeconfig_path
12
+
13
+ if kubeconfig_path.is_a?(KuberKit::Core::ArtifactPath)
14
+ kubeconfig_path = artifact_path_resolver.call(kubeconfig_path)
15
+ end
16
+
11
17
  ui.print_info("ENV", "export KUBECONFIG=#{kubeconfig_path}")
12
18
 
13
19
  true
@@ -10,7 +10,7 @@ class KuberKit::Core::Configuration
10
10
  registries: Hash,
11
11
  env_files: Hash,
12
12
  templates: Hash,
13
- kubeconfig_path: Maybe[String],
13
+ kubeconfig_path: Maybe[Or[String, KuberKit::Core::ArtifactPath]],
14
14
  services_attributes: HashOf[Symbol => Hash],
15
15
  enabled_services: ArrayOf[Symbol],
16
16
  disabled_services: ArrayOf[Symbol],
@@ -1,3 +1,3 @@
1
1
  module KuberKit
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuber_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Khaziev