Skip to content
代码片段 群组 项目
未验证 提交 09ef9dd0 编辑于 作者: Rahul Chanila's avatar Rahul Chanila 提交者: GitLab
浏览文件

Release terraform module registry at (sub)group level

Removes `group_level_infrastructure_registry` feature flag

Changelog: added
上级 33ece4d3
No related branches found
No related tags found
无相关合并请求
......@@ -10,10 +10,7 @@ class InfrastructureRegistryController < Groups::ApplicationController
private
def verify_packages_enabled!
unless group.packages_feature_enabled? &&
Feature.enabled?(:group_level_infrastructure_registry, group.root_ancestor, type: :gitlab_com_derisk)
render_404
end
render_404 unless group.packages_feature_enabled?
end
end
end
---
name: group_level_infrastructure_registry
feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/352041
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/140215
rollout_issue_url: https://gitlab.com/gitlab-com/gl-infra/production/-/issues/17430
milestone: '16.9'
group: group::package registry
type: gitlab_com_derisk
default_enabled: false
......@@ -12,6 +12,7 @@ DETAILS:
> - [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/3221) in GitLab 14.0.
> - Infrastructure registry and Terraform Module Registry [merged](https://gitlab.com/gitlab-org/gitlab/-/issues/404075) into a single Terraform Module Registry feature in GitLab 15.11.
> - Support for groups [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/140215) in GitLab 16.9.
With the Terraform Module Registry, you can use GitLab projects as a
private registry for terraform modules. You can create and publish
......@@ -20,10 +21,10 @@ projects.
## View Terraform modules
To view Terraform modules in your project:
To view Terraform modules in your project or group:
1. Go to the project.
1. On the left sidebar, select **Operate > Terraform modules**.
1. On the left sidebar, select **Search or go to** and find your project or group.
1. Select **Operate > Terraform modules**.
You can search, sort, and filter modules on this page.
......
......@@ -58,10 +58,7 @@ def container_registry_menu_item
end
def infrastructure_registry_menu_item
unless context.group.packages_feature_enabled? &&
Feature.enabled?(:group_level_infrastructure_registry, context.group.root_ancestor, type: :gitlab_com_derisk)
return nil_menu_item(:infrastructure_registry)
end
return nil_menu_item(:infrastructure_registry) unless context.group.packages_feature_enabled?
::Sidebars::MenuItem.new(
title: _('Terraform modules'),
......
......@@ -202,14 +202,6 @@
let(:packages_enabled) { true }
it_behaves_like 'the menu entry is available'
context 'when feature flag is disabled' do
before do
stub_feature_flags(group_level_infrastructure_registry: false)
end
it_behaves_like 'the menu entry is not available'
end
end
end
......
......@@ -36,14 +36,6 @@
it_behaves_like 'returning response status', :not_found
end
context 'when feature flag is disabled' do
before do
stub_feature_flags(group_level_infrastructure_registry: false)
end
it_behaves_like 'returning response status', :not_found
end
end
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册