s/Regions/Deployments
This commit is contained in:
parent
845d1795a3
commit
45bacbabaa
3 changed files with 57 additions and 52 deletions
|
@ -26,6 +26,10 @@ MONTHLY_GRACE_PERIOD = timedelta(335, 0) # 11 months
|
|||
YEARLY_GRACE_PERIOD = timedelta(90, 0) # 3 months
|
||||
LICENSE_FILENAME = 'license'
|
||||
|
||||
QUAY_ENTITLEMENT = 'software.quay'
|
||||
QUAY_DEPLOYMENTS_ENTITLEMENT = 'software.quay.deployments'
|
||||
|
||||
|
||||
|
||||
class LicenseDecodeError(Exception):
|
||||
""" Exception raised if the license could not be read, decoded or has expired. """
|
||||
|
@ -314,8 +318,8 @@ EntitlementRequirement = namedtuple('EntitlementRequirements', ['name', 'count']
|
|||
def _gen_entitlement_requirements(config_obj):
|
||||
config_regions = len(config_obj.get('DISTRIBUTED_STORAGE_CONFIG', []))
|
||||
return [
|
||||
EntitlementRequirement('software.quay', 1),
|
||||
EntitlementRequirement('software.quay.regions', config_regions),
|
||||
EntitlementRequirement(QUAY_ENTITLEMENT, 1),
|
||||
EntitlementRequirement(QUAY_DEPLOYMENTS_ENTITLEMENT, config_regions),
|
||||
]
|
||||
|
||||
|
||||
|
|
Reference in a new issue