summaryrefslogtreecommitdiff
path: root/lib/gitlab/kubernetes
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-06-26 18:18:33 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-07-25 09:39:39 +0100
commitf7abde937dda342ee78618f26ee8f86f46e9072d (patch)
tree8dac174b1eb4a96a6610e4ebf342a04ad5f49138 /lib/gitlab/kubernetes
parenteb7c08c7a644fa07b274b83624005ac53acf7faf (diff)
downloadgitlab-ce-f7abde937dda342ee78618f26ee8f86f46e9072d.tar.gz
Move kubeclient and namespace variables to the private interface
Diffstat (limited to 'lib/gitlab/kubernetes')
-rw-r--r--lib/gitlab/kubernetes/helm/api.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/kubernetes/helm/api.rb b/lib/gitlab/kubernetes/helm/api.rb
index 54332d0cc4e..c4de9a398cc 100644
--- a/lib/gitlab/kubernetes/helm/api.rb
+++ b/lib/gitlab/kubernetes/helm/api.rb
@@ -2,8 +2,6 @@ module Gitlab
module Kubernetes
module Helm
class Api
- attr_reader :kubeclient, :namespace
-
def initialize(kubeclient)
@kubeclient = kubeclient
@namespace = Gitlab::Kubernetes::Namespace.new(Gitlab::Kubernetes::Helm::NAMESPACE, kubeclient)
@@ -36,6 +34,8 @@ module Gitlab
private
+ attr_reader :kubeclient, :namespace
+
def create_config_map(command)
command.config_map_resource.tap do |config_map_resource|
kubeclient.create_config_map(config_map_resource)