dapp 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ecf6a641e3809b578ae7fef52b808d9dbf06829
4
- data.tar.gz: f3a7d98b98bc6b3021e9025d6a99e5b074b6a6d9
3
+ metadata.gz: 603b492e55fefd66b058c89a437dbb5c893580b1
4
+ data.tar.gz: 7f749d8657cd2a57eb11c34c8bd9269ea920d6a8
5
5
  SHA512:
6
- metadata.gz: ef06e988a574a650849b432eda3fee6f17ac16c477130b4db3f428cfe399f5fb8926b002076c365c2ba1c8c31d918300be34bf3b2a52642c4043dc2050a89911
7
- data.tar.gz: 860fcce44990d69c6590ed72919a75bbed02e4b4dab8262bf5d720bba9aa6aa5af766655821be7a4cb99b1faf8b03eafec3e2035011aaf82857e5a289bb40eae
6
+ metadata.gz: 2f60e6e78c30217324faf06da93f57a0d3be2ee2f9d3b8280235a28102723b24db5a6dd6cb6a101001881d5978a74c92b276379f92ac7fbbd182a6f81fbc2ff1
7
+ data.tar.gz: 7d24c671310b496855f9855c8986330cd8e374ab7d619d4957249a0372166190e1052eec6f4235661efef4176f458860f16189261dd99d2b01482eaa457db052
@@ -4,6 +4,8 @@ module Dapp
4
4
  class Client
5
5
  include Helper::YAML
6
6
 
7
+ ::Dapp::Dapp::Shellout::Base.default_env_keys << 'KUBECONFIG'
8
+
7
9
  def initialize(namespace: nil)
8
10
  @namespace = namespace
9
11
  @query_parameters = {}
@@ -253,7 +255,10 @@ module Dapp
253
255
 
254
256
  def kube_config
255
257
  @kube_config ||= begin
256
- if File.exist?((kube_config_path = File.join(ENV['HOME'], '.kube/config')))
258
+ kube_config_path = ENV['KUBECONFIG']
259
+ kube_config_path = File.join(ENV['HOME'], '.kube/config') unless kube_config_path
260
+
261
+ if File.exist?(kube_config_path)
257
262
  yaml_load_file(kube_config_path)
258
263
  else
259
264
  raise Error::Base, code: :kube_config_not_found, data: { path: kube_config_path }
data/lib/dapp/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = '0.14.1'.freeze
2
+ VERSION = '0.14.2'.freeze
3
3
  BUILD_CACHE_VERSION = 16
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov