Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-02 12:10:23 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-02 12:10:23 +0300
commit4b9ace6c1fead1b44f173eaee0cfaa58f46a258a (patch)
treea411c934419690755623a57ff7ea5f47050050e2 /app/helpers/container_registry_helper.rb
parent03a521732276f8abc4ba069dd985b22cd9bc5929 (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.rb8
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