diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-02-22 15:13:30 -0600 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-02-22 15:27:56 -0600 |
commit | 14978ddc53d3ae80a87198d543dbdd14674390dd (patch) | |
tree | 294008baa8589d5c49b6a5bb53f5b42b6a535415 /lib/google_api | |
parent | f330f6596094751ec03dbde4eb8389d0281acaae (diff) | |
download | gitlab-ce-14978ddc53d3ae80a87198d543dbdd14674390dd.tar.gz |
Modify cluster creation API method to enable legacy_apac as default
GKE 1.8 has RBAC on by default, since GKE has bumped the default version
to 1.8.7 RBAC is now on, and we don't support that out of the box.
This was also avoiding cluster applications (tiller, prometheus, etc), to
be installed.
Closes #41619
Diffstat (limited to 'lib/google_api')
-rw-r--r-- | lib/google_api/cloud_platform/client.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/google_api/cloud_platform/client.rb b/lib/google_api/cloud_platform/client.rb index ff638c07755..f30dd995695 100644 --- a/lib/google_api/cloud_platform/client.rb +++ b/lib/google_api/cloud_platform/client.rb @@ -76,9 +76,13 @@ module GoogleApi "initial_node_count": cluster_size, "node_config": { "machine_type": machine_type + }, + "legacy_abac": { + "enabled": true } } - } ) + } + ) service.create_cluster(project_id, zone, request_body, options: user_agent_header) end |