From a5419138fd1dd766713a3754c8406133b3d9b99b Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Tue, 23 Oct 2018 23:52:34 +1300 Subject: Store version within SUPPORTED_API_GROUPS hash This removes the ability to pass in a different version. We can instead create a new entry in the SUPPORTED_API_GROUPS hash for a different version if need be. --- app/services/clusters/gcp/finalize_creation_service.rb | 3 +-- 1 file changed, 1 insertion(+), 2 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 78b6a5cf7cb..6ee63db8eb9 100644 --- a/app/services/clusters/gcp/finalize_creation_service.rb +++ b/app/services/clusters/gcp/finalize_creation_service.rb @@ -64,12 +64,11 @@ module Clusters ) end - def build_kube_client!(api_url, ca_pem, username, password, api_version: 'v1') + def build_kube_client!(api_url, ca_pem, username, password) raise "Incomplete settings" unless api_url && username && password Gitlab::Kubernetes::KubeClient.new( api_url, - api_version, auth_options: { username: username, password: password }, ssl_options: kubeclient_ssl_options(ca_pem), http_proxy_uri: ENV['http_proxy'] -- cgit v1.2.3