2020-09-02 09:10:23 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ContainerRegistryHelper
|
2021-02-01 15:08:56 +00:00
|
|
|
def container_registry_expiration_policies_throttling?
|
2020-09-02 09:10:23 +00:00
|
|
|
Feature.enabled?(:container_registry_expiration_policies_throttling) &&
|
|
|
|
ContainerRegistry::Client.supports_tag_delete?
|
|
|
|
end
|
2020-12-10 15:10:12 +00:00
|
|
|
|
|
|
|
def container_repository_gid_prefix
|
|
|
|
"gid://#{GlobalID.app}/#{ContainerRepository.name}/"
|
|
|
|
end
|
2020-09-02 09:10:23 +00:00
|
|
|
end
|