2020-09-02 05:10:23 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ContainerRegistryHelper
|
2021-02-01 10:08:56 -05:00
|
|
|
def container_registry_expiration_policies_throttling?
|
2020-09-02 05:10:23 -04:00
|
|
|
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
|