12 lines
360 B
Ruby
12 lines
360 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ContainerRegistryHelper
|
|
def container_registry_expiration_policies_throttling?
|
|
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
|