diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-09-25 10:10:25 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-25 10:10:25 +0300 |
commit | d4fa672c20657a1c7d2fcfa25e9798e7ccdbf39d (patch) | |
tree | 416f477c9f574116d74cbf6687b7b18a09f550d5 /config/routes | |
parent | e2b195b2748c88e276163d44cdeff5b210f2522c (diff) |
Create Kubernetes cluster on GKE from k8s service
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/google_api.rb | 5 | ||||
-rw-r--r-- | config/routes/project.rb | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/config/routes/google_api.rb b/config/routes/google_api.rb new file mode 100644 index 00000000000..57e15d0d39c --- /dev/null +++ b/config/routes/google_api.rb @@ -0,0 +1,5 @@ +namespace :google_api do + resource :authorizations, only: [], controller: :authorizations do + match :callback, via: [:get, :post] + end +end diff --git a/config/routes/project.rb b/config/routes/project.rb index b36d13888cd..5a43e2274a6 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -183,6 +183,13 @@ constraints(ProjectUrlConstrainer.new) do end end + resources :clusters, except: [:show, :destroy] do + collection do + get :gcp_projects # TODO: This doesn't belong here. Grape or under user. Hint. Serilizer + get :gke_zones + end + end + resources :environments, except: [:destroy] do member do post :stop |