diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-02 12:10:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-02 12:10:23 +0300 |
commit | 4b9ace6c1fead1b44f173eaee0cfaa58f46a258a (patch) | |
tree | a411c934419690755623a57ff7ea5f47050050e2 /app/helpers/container_registry_helper.rb | |
parent | 03a521732276f8abc4ba069dd985b22cd9bc5929 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/container_registry_helper.rb')
-rw-r--r-- | app/helpers/container_registry_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/container_registry_helper.rb b/app/helpers/container_registry_helper.rb new file mode 100644 index 00000000000..9a5d84a90dd --- /dev/null +++ b/app/helpers/container_registry_helper.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +module ContainerRegistryHelper + def limit_delete_tags_service? + Feature.enabled?(:container_registry_expiration_policies_throttling) && + ContainerRegistry::Client.supports_tag_delete? + end +end |