diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-25 09:10:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-25 09:10:54 +0000 |
commit | 686c2375e1c9c559e3e7e04a8fbfbdafd9671932 (patch) | |
tree | dff32f6ef5167e1fb515b9406e0dfbee1ec4d1fb /lib/google_api | |
parent | a1668610f7dbeb969f8e284bcbbff432d129bffd (diff) | |
download | gitlab-ce-686c2375e1c9c559e3e7e04a8fbfbdafd9671932.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/google_api')
-rw-r--r-- | lib/google_api/cloud_platform/client.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/google_api/cloud_platform/client.rb b/lib/google_api/cloud_platform/client.rb index f16bd7c735b..34e3be2320b 100644 --- a/lib/google_api/cloud_platform/client.rb +++ b/lib/google_api/cloud_platform/client.rb @@ -13,6 +13,10 @@ module GoogleApi LEAST_TOKEN_LIFE_TIME = 10.minutes CLUSTER_MASTER_AUTH_USERNAME = 'admin' CLUSTER_IPV4_CIDR_BLOCK = '/16' + # Don't upgrade to > 1.18 before we move away from Basic Auth + # See issue: https://gitlab.com/gitlab-org/gitlab/-/issues/331582 + # Possible solution: https://gitlab.com/groups/gitlab-org/-/epics/6049 + GKE_VERSION = '1.18' CLUSTER_OAUTH_SCOPES = [ "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write", @@ -90,6 +94,7 @@ module GoogleApi cluster: { name: cluster_name, initial_node_count: cluster_size, + initial_cluster_version: GKE_VERSION, node_config: { machine_type: machine_type, oauth_scopes: CLUSTER_OAUTH_SCOPES |