debian-mirror-gitlab/app/helpers/container_registry_helper.rb

12 lines
328 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
module ContainerRegistryHelper
2021-03-11 19:13:27 +05:30
def container_registry_expiration_policies_throttling?
2022-05-07 20:08:51 +05:30
Feature.enabled?(:container_registry_expiration_policies_throttling, default_enabled: :yaml)
2020-11-24 15:15:51 +05:30
end
2021-02-22 17:27:13 +05:30
def container_repository_gid_prefix
"gid://#{GlobalID.app}/#{ContainerRepository.name}/"
end
2020-11-24 15:15:51 +05:30
end