-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Implementation of edit universe in v2. Only a sub-set of the properties in create spec are editable. So creating an EditSpec for such objects. OTOH, for some objects, all the properties are editable. So using the create Spec for such objets in the edit request payload. CRUD of ReadReplica clusters will be taken up in a subsequent diff. Test Plan: Unit test. Reviewers: dshubin, sanketh, #yba-api-review!, skurapati, dkumar Reviewed By: dshubin Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D34782
- Loading branch information
1 parent
718f58d
commit ea27a38
Showing
15 changed files
with
1,513 additions
and
1,021 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
managed/src/main/resources/openapi/components/requestBodies/UniverseEditReq.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../schemas/UniverseEditSpec.yaml |
31 changes: 31 additions & 0 deletions
31
managed/src/main/resources/openapi/components/schemas/ClusterEditSpec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
title: Edit Cluster Spec | ||
type: object | ||
required: | ||
- uuid | ||
properties: | ||
uuid: | ||
description: The system generated cluster uuid to edit. This can be fetched from ClusterInfo. | ||
type: string | ||
format: uuid | ||
example: 19ebde21-d537-47dc-8fab-3edc243c6f68 | ||
num_nodes: | ||
description: Set the number of nodes (tservers) to provision in this cluster | ||
type: integer | ||
format: int32 | ||
example: 3 | ||
minimum: 1 | ||
instance_type: | ||
description: Set instance type for tserver nodes of cluster | ||
type: string | ||
example: c5.xlarge | ||
storage_spec: | ||
$ref: ./ClusterStorageSpec.yaml | ||
provider_spec: | ||
$ref: ./ClusterProviderEditSpec.yaml | ||
placement_spec: | ||
$ref: ./ClusterPlacementSpec.yaml | ||
instance_tags: | ||
description: 'A map of strings representing a set of Tags and Values to apply on nodes in the aws/gcp/azu cloud. See https://docs.yugabyte.com/preview/yugabyte-platform/manage-deployments/instance-tags/.' | ||
type: object | ||
additionalProperties: | ||
type: string |
9 changes: 9 additions & 0 deletions
9
managed/src/main/resources/openapi/components/schemas/ClusterProviderEditSpec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
title: Edit Cloud Provider settings for the cluster | ||
type: object | ||
properties: | ||
region_list: | ||
description: Edit the list of regions in the cloud provider to place data replicas | ||
type: array | ||
items: | ||
type: string | ||
format: uuid |
16 changes: 16 additions & 0 deletions
16
managed/src/main/resources/openapi/components/schemas/UniverseEditSpec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
title: Edit Universe Spec | ||
type: object | ||
required: | ||
- clusters | ||
- expected_universe_version | ||
properties: | ||
clusters: | ||
type: array | ||
items: | ||
$ref: ./ClusterEditSpec.yaml | ||
maxItems: 16 | ||
minItems: 1 | ||
expected_universe_version: | ||
description: Expected universe version. Set to -1 to ignore version checking. | ||
type: integer | ||
format: int32 |
Oops, something went wrong.