diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-10-03 07:04:15 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-10-23 13:36:43 +0300 |
commit | 8d81f2690c5c277065c6f4a1f9eecc5e771d8cfe (patch) | |
tree | 52d746252d8ecdde994a750e88b57afdcb66a9f7 /app/services/clusters/gcp | |
parent | 983c4a50d083be8e9a980613d98937a587450b18 (diff) |
Update all usages of KubeClient
Find and replace everywhere we pass in `api_groups` to KubeClient, as no
longer needed
Diffstat (limited to 'app/services/clusters/gcp')
-rw-r--r-- | app/services/clusters/gcp/finalize_creation_service.rb | 6 |
1 files changed, 2 insertions, 4 deletions
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), |