From 39792f6679da3893b31109b5fe3991f6429eb98a Mon Sep 17 00:00:00 2001 From: Thinh Dinh Date: Fri, 24 Jul 2026 11:34:21 -0400 Subject: [PATCH 1/2] SOD-782: Add 'reportPartialCompletion' field to cluster roll. --- api/services/ocean/aws/paths/clusters-roll.yaml | 3 +++ .../ocean/aws/responses/clusterRollGetAllResponse.yaml | 5 ++++- .../ocean/aws/responses/initiate-clusterRoll.yaml | 5 ++++- .../aws/schemas/roll/roll-reportPartialCompletion.yaml | 8 ++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml diff --git a/api/services/ocean/aws/paths/clusters-roll.yaml b/api/services/ocean/aws/paths/clusters-roll.yaml index 215f338f6..a3be7bcc5 100644 --- a/api/services/ocean/aws/paths/clusters-roll.yaml +++ b/api/services/ocean/aws/paths/clusters-roll.yaml @@ -26,6 +26,7 @@ post: - $ref: "../schemas/roll/roll-comment.yaml" - $ref: "../schemas/roll/roll-respectPdb.yaml" - $ref: "../schemas/roll/roll-batchMinHealthyPercentage.yaml" + - $ref: "../schemas/roll/roll-reportPartialCompletion.yaml" - type: object title: 'Roll with instance ids' properties: @@ -36,6 +37,7 @@ post: - $ref: "../schemas/roll/roll-respectPdb.yaml" - $ref: "../schemas/roll/roll-batchMinHealthyPercentage.yaml" - $ref: "../schemas/roll/roll-instanceIds.yaml" + - $ref: "../schemas/roll/roll-reportPartialCompletion.yaml" - type: object title: 'Roll with Virtual Node Group ids' properties: @@ -47,6 +49,7 @@ post: - $ref: "../schemas/roll/roll-batchMinHealthyPercentage.yaml" - $ref: "../schemas/roll/roll-launchSpecIds.yaml" - $ref: "../schemas/roll/roll-disableLaunchSpecAutoScaling.yaml" + - $ref: "../schemas/roll/roll-reportPartialCompletion.yaml" responses: 200: $ref: "../responses/initiate-clusterRoll.yaml" diff --git a/api/services/ocean/aws/responses/clusterRollGetAllResponse.yaml b/api/services/ocean/aws/responses/clusterRollGetAllResponse.yaml index 76a6ea251..8ced5e337 100644 --- a/api/services/ocean/aws/responses/clusterRollGetAllResponse.yaml +++ b/api/services/ocean/aws/responses/clusterRollGetAllResponse.yaml @@ -30,7 +30,7 @@ content: example: Cluster status: type: string - enum: [IN_PROGRESS, COMPLETED, FAILED, STOPPED] + enum: [IN_PROGRESS, COMPLETED, PARTIALLY_COMPLETED, FAILED, STOPPED] example: IN_PROGRESS currentBatch: type: integer @@ -94,6 +94,9 @@ content: batchMinHealthyPercentage: type: integer example: 100 + reportPartialCompletion: + type: boolean + example: true createdAt: type: string example: 2019-03-24T15:46:09.000Z diff --git a/api/services/ocean/aws/responses/initiate-clusterRoll.yaml b/api/services/ocean/aws/responses/initiate-clusterRoll.yaml index 274ae3cd7..ba50af747 100644 --- a/api/services/ocean/aws/responses/initiate-clusterRoll.yaml +++ b/api/services/ocean/aws/responses/initiate-clusterRoll.yaml @@ -13,7 +13,7 @@ content: example: Cluster status: type: string - enum: [IN_PROGRESS, COMPLETED, FAILED, STOPPED] + enum: [IN_PROGRESS, COMPLETED, PARTIALLY_COMPLETED, FAILED, STOPPED] example: IN_PROGRESS currentBatch: type: integer @@ -77,6 +77,9 @@ content: batchMinHealthyPercentage: type: integer example: 100 + reportPartialCompletion: + type: boolean + example: true createdAt: type: string example: 2019-03-24T15:46:09.000Z diff --git a/api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml b/api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml new file mode 100644 index 000000000..443d54443 --- /dev/null +++ b/api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml @@ -0,0 +1,8 @@ +type: object +properties: + reportPartialCompletion: + type: boolean + description: > + When true, a roll that ends with a mix of successfully and unsuccessfully replaced instances is reported as PARTIALLY_COMPLETED instead of FAILED. Defaults to false, preserving the legacy behavior of reporting FAILED for any mixed result. + example: true + default: false From 0bbf8c376bf613dfc2a107290579314a17d753bc Mon Sep 17 00:00:00 2001 From: Thinh Dinh Date: Mon, 27 Jul 2026 10:12:08 -0400 Subject: [PATCH 2/2] SOD-782: Update description per Documentation team. --- .../ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml b/api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml index 443d54443..bff500e77 100644 --- a/api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml +++ b/api/services/ocean/aws/schemas/roll/roll-reportPartialCompletion.yaml @@ -3,6 +3,6 @@ properties: reportPartialCompletion: type: boolean description: > - When true, a roll that ends with a mix of successfully and unsuccessfully replaced instances is reported as PARTIALLY_COMPLETED instead of FAILED. Defaults to false, preserving the legacy behavior of reporting FAILED for any mixed result. + When set to true, a roll that ends with a mixed result of successfully and unsuccessfully replaced instances is reported as PARTIALLY_COMPLETED. When set to false, a mixed result is reported as FAILED. example: true default: false