Skip to content

Gc system tenant(GONRG-9300)

Rustam Lotsmanenko (EPAM) requested to merge gc-system-tenant into master

Description:

ADR: #49 (closed)

  • Added new API to formalize system tenant.
  • Updated behavior of existing API to forbid system tenant management via regular API.
  • Updated open API docs.
  • The new API is implemented in a non-disruptive manner and controlled via the property SYSTEM_TENANT_API=true. The open API documentation will show the new API only if it is enabled. The existing API will function as usual when disabled.
  • Shared tenant name can be configured.

API controlled via properties:

SYSTEM_PARTITION_ID: "system"
SYSTEM_TENANT_API: "true"

How to test:

via HTTP requests:

curl --location '127.0.0.1:8080/api/partition/v1/partition/system

Changes include:

  • Refactor (a non-breaking change that improves code maintainability).
  • Bugfix (a non-breaking change that solves an issue).
  • New feature (a non-breaking change that adds functionality).
  • Breaking change (a change that is not backward-compatible and/or changes current functionality).

Changes in:

  • GC
  • Azure
  • AWS
  • IBM

Dev Checklist:

  • Added Unit Tests, wherever applicable.
  • Updated the Readme, if applicable.
  • Existing Tests pass
  • Verified functionality locally
  • Self Reviewed my code for formatting and complex business logic.

Other comments:

Any comments to approvers here

Edited by Rustam Lotsmanenko (EPAM)

Merge request reports

Loading