mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-15 23:30:46 +00:00
Add google_api to TOP_LEVEL_ROUTES. Import/Export model failure fix. Fix static analysys.
This commit is contained in:
@ -46,7 +46,7 @@ module GoogleApi
|
||||
config.app_id,
|
||||
config.app_secret,
|
||||
site: 'https://accounts.google.com',
|
||||
token_url: '/o/oauth2/token',
|
||||
token_url: '/o/oauth2/token',
|
||||
authorize_url: '/o/oauth2/auth'
|
||||
)
|
||||
end
|
||||
|
@ -44,16 +44,15 @@ module GoogleApi
|
||||
service.authorization = access_token
|
||||
|
||||
request_body = Google::Apis::ContainerV1::CreateClusterRequest.new(
|
||||
{
|
||||
"cluster": {
|
||||
"name": cluster_name,
|
||||
"initial_node_count": cluster_size,
|
||||
"node_config": {
|
||||
"machine_type": machine_type # Default 3.75 GB, if ommit
|
||||
}
|
||||
{
|
||||
"cluster": {
|
||||
"name": cluster_name,
|
||||
"initial_node_count": cluster_size,
|
||||
"node_config": {
|
||||
"machine_type": machine_type
|
||||
}
|
||||
}
|
||||
)
|
||||
} )
|
||||
|
||||
service.create_cluster(project_id, zone, request_body)
|
||||
end
|
||||
|
Reference in New Issue
Block a user