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?
|
2020-11-24 15:15:51 +05:30
|
|
|
Feature.enabled?(:container_registry_expiration_policies_throttling) &&
|
|
|
|
ContainerRegistry::Client.supports_tag_delete?
|
|
|
|
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
|