Skip to content

Allow idempotency for register_default_quotas.py #299

@QuanMPhm

Description

@QuanMPhm

As mentioned by @knikolla, the register_default_quotas.py is not idempotent:

If there's an error midway through registering the command the first time, the second time the command is run the resource will be skipped and therefore will not reach our desired state. You don't need to fix this now, but we should make an issue to have this compare the quotas in the attribute and add the missing ones.

Additionally, in a follow-up patch (don't worry about it now), I would like to see this command take --resource-name as a command, this way we can run it only on newly registered resources.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions