Skip to content

Commit

Permalink
Removes special treatment of GCP authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld authored and KnVerey committed Apr 30, 2019
1 parent 7377fe9 commit 54f7cd2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 131 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## next

*Other*
- Removes special treatment of GCP authentication by upgrading to `kubeclient` 4.3.

## 0.26.4

*Bug fixes*
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-deploy.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.3.0'
spec.add_dependency("activesupport", ">= 5.0")
spec.add_dependency("kubeclient", "~> 4.0")
spec.add_dependency("kubeclient", "~> 4.3")
spec.add_dependency("googleauth", "~> 0.6.6") # https://github.com/google/google-auth-library-ruby/issues/153
spec.add_dependency("ejson", "~> 1.0")
spec.add_dependency("colorize", "~> 0.8")
Expand Down
3 changes: 1 addition & 2 deletions lib/kubernetes-deploy/kubeclient_builder.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true
require 'kubeclient'
require 'kubernetes-deploy/kubeclient_builder/kube_config'

module KubernetesDeploy
class KubeclientBuilder
Expand Down Expand Up @@ -118,7 +117,7 @@ def validate_config_files!

def build_kubeclient(api_version:, context:, endpoint_path: nil)
validate_config_files!
@kubeclient_configs ||= @kubeconfig_files.map { |f| KubeConfig.read(f) }
@kubeclient_configs ||= @kubeconfig_files.map { |f| Kubeclient::Config.read(f) }
# Find a context defined in kube conf files that matches the input context by name
config = @kubeclient_configs.find { |c| c.contexts.include?(context) }
raise ContextMissingError.new(context, @kubeconfig_files) unless config
Expand Down
21 changes: 0 additions & 21 deletions lib/kubernetes-deploy/kubeclient_builder/kube_config.rb

This file was deleted.

107 changes: 0 additions & 107 deletions test/unit/kubernetes-deploy/kube_config_test.rb

This file was deleted.

0 comments on commit 54f7cd2

Please sign in to comment.