From 37ad42a37df9013e10c878656ce29a45ce2bd03f Mon Sep 17 00:00:00 2001 From: tamarm Date: Thu, 12 Dec 2024 13:37:56 +0200 Subject: [PATCH] added revertToPreferred parameter for gcp ocean cluster and vng --- .../ocean/gke/schemas/ocean-strategy.yaml | 20 ++++++++++++++++++- .../gke/schemas/oceanLaunchSpecStrategy.yaml | 17 ++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/api/services/ocean/gke/schemas/ocean-strategy.yaml b/api/services/ocean/gke/schemas/ocean-strategy.yaml index 24fd82111..0412b68a4 100644 --- a/api/services/ocean/gke/schemas/ocean-strategy.yaml +++ b/api/services/ocean/gke/schemas/ocean-strategy.yaml @@ -25,4 +25,22 @@ properties: type: boolean example: true description: > - Enable committed use discounts utilization. \ No newline at end of file + Enable committed use discounts utilization. + revertToPreferred: + type: object + description: > + Allow the replacement of instances to Preferred ones if available. + properties: + shouldPerform: + type: boolean + default: true + description: > + If enabled, replacements will be performed for all of your cluster, unless configured on VNG level. TRUE is the default + maxBatchPercentage: + type: integer + minimum: 0 + maximum: 100 + default: 10 + description: > + Decide on the % of instances that will be replaced at once + diff --git a/api/services/ocean/gke/schemas/oceanLaunchSpecStrategy.yaml b/api/services/ocean/gke/schemas/oceanLaunchSpecStrategy.yaml index 3db812265..87fb55851 100644 --- a/api/services/ocean/gke/schemas/oceanLaunchSpecStrategy.yaml +++ b/api/services/ocean/gke/schemas/oceanLaunchSpecStrategy.yaml @@ -17,3 +17,20 @@ properties: example: true description: > Enable committed use discounts utilization. + revertToPreferred: + type: object + description: > + Allow the replacement of instances to Preferred ones if available. + properties: + shouldPerform: + type: boolean + default: true + description: > + If enabled, replacements will be performed for your VNG. TRUE is the default + maxBatchPercentage: + type: integer + minimum: 0 + maximum: 100 + default: 10 + description: > + Decide on the % of instances that will be replaced at once