Skip to content
Snippets Groups Projects

Add Google Cloud Compute services

Merged Pedro Pombeiro requested to merge pedropombeiro/438315/add-services into master
11 files
+ 514
0
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -149,6 +149,11 @@ module ProjectPolicy
@@ -149,6 +149,11 @@ module ProjectPolicy
@subject.feature_available?(:combined_project_analytics_dashboards, @user)
@subject.feature_available?(:combined_project_analytics_dashboards, @user)
end
end
 
condition(:google_cloud_platform_support_available, scope: :global) do
 
# TODO: This will be renamed to google_cloud_platform_support (https://gitlab.com/gitlab-org/gitlab/-/issues/438989)
 
::Gitlab::Saas.feature_available?(:google_artifact_registry)
 
end
 
condition(:status_page_available) do
condition(:status_page_available) do
@subject.feature_available?(:status_page, @user)
@subject.feature_available?(:status_page, @user)
end
end
@@ -767,6 +772,8 @@ module ProjectPolicy
@@ -767,6 +772,8 @@ module ProjectPolicy
rule { status_page_available & can?(:owner_access) }.enable :mark_issue_for_publication
rule { status_page_available & can?(:owner_access) }.enable :mark_issue_for_publication
rule { status_page_available & can?(:developer_access) }.enable :publish_status_page
rule { status_page_available & can?(:developer_access) }.enable :publish_status_page
 
rule { google_cloud_platform_support_available & can?(:maintainer_access) }.enable :read_runner_cloud_provisioning_options
 
rule { hidden }.policy do
rule { hidden }.policy do
prevent :download_code
prevent :download_code
prevent :build_download_code
prevent :build_download_code
Loading