Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-10-23 13:52:34 +0300
committerThong Kuah <tkuah@gitlab.com>2018-10-23 13:52:34 +0300
commita5419138fd1dd766713a3754c8406133b3d9b99b (patch)
tree563efbb8e705745f63148821e92e930bc4eb3286 /app/services/clusters/gcp
parent170071e365040e6a802918f23f80f7850d1f4bb5 (diff)
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.
Diffstat (limited to 'app/services/clusters/gcp')
-rw-r--r--app/services/clusters/gcp/finalize_creation_service.rb3
1 files changed, 1 insertions, 2 deletions
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']