From 8d81f2690c5c277065c6f4a1f9eecc5e771d8cfe Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Wed, 3 Oct 2018 17:04:15 +1300 Subject: Update all usages of KubeClient Find and replace everywhere we pass in `api_groups` to KubeClient, as no longer needed --- app/services/clusters/gcp/finalize_creation_service.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/services/clusters/gcp') diff --git a/app/services/clusters/gcp/finalize_creation_service.rb b/app/services/clusters/gcp/finalize_creation_service.rb index 3ae0a4a19d0..78b6a5cf7cb 100644 --- a/app/services/clusters/gcp/finalize_creation_service.rb +++ b/app/services/clusters/gcp/finalize_creation_service.rb @@ -60,17 +60,15 @@ module Clusters 'https://' + gke_cluster.endpoint, Base64.decode64(gke_cluster.master_auth.cluster_ca_certificate), gke_cluster.master_auth.username, - gke_cluster.master_auth.password, - api_groups: ['api', 'apis/rbac.authorization.k8s.io'] + gke_cluster.master_auth.password ) end - def build_kube_client!(api_url, ca_pem, username, password, api_groups: ['api'], api_version: 'v1') + def build_kube_client!(api_url, ca_pem, username, password, api_version: 'v1') raise "Incomplete settings" unless api_url && username && password Gitlab::Kubernetes::KubeClient.new( api_url, - api_groups, api_version, auth_options: { username: username, password: password }, ssl_options: kubeclient_ssl_options(ca_pem), -- cgit v1.2.3