summaryrefslogtreecommitdiff
path: root/app/models/clusters
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-10-03 17:04:15 +1300
committerThong Kuah <tkuah@gitlab.com>2018-10-23 23:36:43 +1300
commit8d81f2690c5c277065c6f4a1f9eecc5e771d8cfe (patch)
tree52d746252d8ecdde994a750e88b57afdcb66a9f7 /app/models/clusters
parent983c4a50d083be8e9a980613d98937a587450b18 (diff)
downloadgitlab-ce-8d81f2690c5c277065c6f4a1f9eecc5e771d8cfe.tar.gz
Update all usages of KubeClient
Find and replace everywhere we pass in `api_groups` to KubeClient, as no longer needed
Diffstat (limited to 'app/models/clusters')
-rw-r--r--app/models/clusters/platforms/kubernetes.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/clusters/platforms/kubernetes.rb b/app/models/clusters/platforms/kubernetes.rb
index e8e943872de..fb11143d5a6 100644
--- a/app/models/clusters/platforms/kubernetes.rb
+++ b/app/models/clusters/platforms/kubernetes.rb
@@ -107,7 +107,7 @@ module Clusters
end
def kubeclient
- @kubeclient ||= build_kube_client!(api_groups: ['api', 'apis/rbac.authorization.k8s.io'])
+ @kubeclient ||= build_kube_client!
end
private
@@ -136,7 +136,7 @@ module Clusters
Gitlab::NamespaceSanitizer.sanitize(slug)
end
- def build_kube_client!(api_groups: ['api'], api_version: 'v1')
+ def build_kube_client!(api_version: 'v1')
raise "Incomplete settings" unless api_url && actual_namespace
unless (username && password) || token
@@ -145,7 +145,6 @@ module Clusters
Gitlab::Kubernetes::KubeClient.new(
api_url,
- api_groups,
api_version,
auth_options: kubeclient_auth_options,
ssl_options: kubeclient_ssl_options,