Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a42f68a1
Commit
a42f68a1
authored
Jan 06, 2022
by
Sri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DeploymentsController with placeholder routes
parent
489a961e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
app/controllers/projects/google_cloud/deployments_controller.rb
...ntrollers/projects/google_cloud/deployments_controller.rb
+13
-0
config/routes/project.rb
config/routes/project.rb
+3
-0
lib/sidebars/projects/menus/infrastructure_menu.rb
lib/sidebars/projects/menus/infrastructure_menu.rb
+1
-1
No files found.
app/controllers/projects/google_cloud/deployments_controller.rb
0 → 100644
View file @
a42f68a1
# frozen_string_literal: true
class
Projects::GoogleCloud::DeploymentsController
<
Projects
::
GoogleCloud
::
BaseController
before_action
:validate_gcp_token!
def
cloud_run
render
json:
"Placeholder"
end
def
cloud_storage
render
json:
"Placeholder"
end
end
config/routes/project.rb
View file @
a42f68a1
...
...
@@ -319,6 +319,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
namespace
:google_cloud
do
resources
:service_accounts
,
only:
[
:index
,
:create
]
get
'/deployments/cloud_run'
,
to:
'deployments#cloud_run'
get
'/deployments/cloud_storage'
,
to:
'deployments#cloud_storage'
end
resources
:environments
,
except:
[
:destroy
]
do
...
...
lib/sidebars/projects/menus/infrastructure_menu.rb
View file @
a42f68a1
...
...
@@ -100,7 +100,7 @@ module Sidebars
::
Sidebars
::
MenuItem
.
new
(
title:
_
(
'Google Cloud'
),
link:
project_google_cloud_index_path
(
context
.
project
),
active_routes:
{
controller:
[
:google_cloud
,
:service_accounts
]
},
active_routes:
{
controller:
[
:google_cloud
,
:service_accounts
,
:deployments
]
},
item_id: :google_cloud
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment