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