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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/kuber_kit/actions/kubectl_env.rb +6 -0
- data/lib/kuber_kit/core/configuration.rb +1 -1
- data/lib/kuber_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d37959e170cf0ae0f88daa765fed03f52d3df930a05f8130fccbd2d6b68468d
|
4
|
+
data.tar.gz: 89610ec982168e4bad20d1688b792d60f95174e9a3d8d420bc7a257db6889b86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6d6dbe6c69bb428b7b528bcfed76d1619abd1b8253bd2a2c069a657e487db6444cdfa65a6ec8e896bb691b688dcb4a5dfcd1a024bf657c29ad77b0eb40b5cc5
|
7
|
+
data.tar.gz: 758e908ce338e9effb8d9e1740e200ee69b64b22154436c6548635eca3ffcd39c1ee634c94850741cecb629558a875055afc85434ba45adeccecc29e209a8f3e
|
data/CHANGELOG.md
CHANGED
@@ -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],
|
data/lib/kuber_kit/version.rb
CHANGED