From 5a5151fc9ed0235ee8e28404cbfdb02ff738133e Mon Sep 17 00:00:00 2001 From: lionelr Date: Wed, 11 Dec 2024 10:18:11 +0200 Subject: [PATCH] AZUEG-14044 - add the option to switch the VM to OD before deleting the stateful node -tests and Deployment --- .../schemas/create/createStatefulNodeStrategy.yaml | 13 +------------ .../stateful/node/schemas/deleteStatefulNode.yaml | 6 ++++++ .../schemas/update/updateStatefulNodeStrategy.yaml | 13 +------------ 3 files changed, 8 insertions(+), 24 deletions(-) diff --git a/api/services/elastigroup/azure/stateful/node/schemas/create/createStatefulNodeStrategy.yaml b/api/services/elastigroup/azure/stateful/node/schemas/create/createStatefulNodeStrategy.yaml index bcae8d41c..6f0ba358d 100644 --- a/api/services/elastigroup/azure/stateful/node/schemas/create/createStatefulNodeStrategy.yaml +++ b/api/services/elastigroup/azure/stateful/node/schemas/create/createStatefulNodeStrategy.yaml @@ -136,15 +136,4 @@ properties: description: | Set the desired preference for the Spot market VM selection. (100- Availability, 0- cost) type: integer - example: 100 - vmAdmins: - type: array - description: | - * A list of strings. Defines Azure identities that are considered VM admins. - * If the list is empty, the defined behavior is "NONE". - * If the list is null, the defined behavior is "ALL”. This applies if the object is not defined. - * If an identity **contains** the string, it will be considered permitted to perform the following actions: - * Stop VM: VM admins can move the VM to a "stopped (deallocated)" state using the Azure console. If triggered by someone else, it is considered an interruption. - example: [ "@example1.com","@example2.com","service1" ] - items: - type: string \ No newline at end of file + example: 100 \ No newline at end of file diff --git a/api/services/elastigroup/azure/stateful/node/schemas/deleteStatefulNode.yaml b/api/services/elastigroup/azure/stateful/node/schemas/deleteStatefulNode.yaml index 7873841f1..704ac1e24 100644 --- a/api/services/elastigroup/azure/stateful/node/schemas/deleteStatefulNode.yaml +++ b/api/services/elastigroup/azure/stateful/node/schemas/deleteStatefulNode.yaml @@ -103,3 +103,9 @@ properties: minimum: 0 maximum: 371 default: 96 + shouldRevertToOd: + type: boolean + default: false + description: | + Indicates whether to change the stateful node's VM lifecycle to on-demand. Can be changed to true only when shouldTerminateVms is 'false'. + example: false diff --git a/api/services/elastigroup/azure/stateful/node/schemas/update/updateStatefulNodeStrategy.yaml b/api/services/elastigroup/azure/stateful/node/schemas/update/updateStatefulNodeStrategy.yaml index dda7339c6..60e457de9 100644 --- a/api/services/elastigroup/azure/stateful/node/schemas/update/updateStatefulNodeStrategy.yaml +++ b/api/services/elastigroup/azure/stateful/node/schemas/update/updateStatefulNodeStrategy.yaml @@ -136,15 +136,4 @@ properties: description: | Set the desired preference for the Spot market VM selection. (100- Availability, 0- cost) type: integer - example: 100 - vmAdmins: - type: array - description: | - * A list of strings. Defines Azure identities that are considered VM admins. - * If the list is empty, the defined behavior is "NONE". - * If the list is null, the defined behavior is "ALL”. This applies if the object is not defined. - * If an identity **contains** the string, it will be considered permitted to perform the following actions: - * Stop VM: VM admins can move the VM to a "stopped (deallocated)" state using the Azure console. If triggered by someone else, it is considered an interruption. - example: [ "@example1.com","@example2.com","service1" ] - items: - type: string \ No newline at end of file + example: 100 \ No newline at end of file