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?
|
2022-03-09 18:08:16 +00:00
|
|
|
Feature.enabled?(:container_registry_expiration_policies_throttling, default_enabled: :yaml)
|
2020-09-02 09:10:23 +00:00
|
|
|
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
|