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

container_registry_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0efc8c50d581d2a369fb0a0f201bce6ae52dfcb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module ContainerRegistryHelper
  def limit_delete_tags_service?
    Feature.enabled?(:container_registry_expiration_policies_throttling) &&
      ContainerRegistry::Client.supports_tag_delete?
  end

  def container_repository_gid_prefix
    "gid://#{GlobalID.app}/#{ContainerRepository.name}/"
  end
end