From 846cfea1d4a342171b0b1afe41c268b9ee3b6365 Mon Sep 17 00:00:00 2001 From: avishagk Date: Wed, 20 Nov 2024 17:04:51 +0200 Subject: [PATCH 1/2] [src] - ocean gke - add AutoUpdate field --- api/services/ocean/gke/schemas/ocean-autoUpdate.yaml | 9 +++++++++ api/services/ocean/gke/schemas/oceanCluster.yaml | 2 ++ api/services/ocean/gke/schemas/oceanClusterCreate.yaml | 2 ++ api/services/ocean/gke/schemas/oceanClusterUpdate.yaml | 2 ++ .../ocean/gke/schemas/oceanGkeImportResponse.yaml | 2 ++ 5 files changed, 17 insertions(+) create mode 100644 api/services/ocean/gke/schemas/ocean-autoUpdate.yaml diff --git a/api/services/ocean/gke/schemas/ocean-autoUpdate.yaml b/api/services/ocean/gke/schemas/ocean-autoUpdate.yaml new file mode 100644 index 000000000..0d5ffd973 --- /dev/null +++ b/api/services/ocean/gke/schemas/ocean-autoUpdate.yaml @@ -0,0 +1,9 @@ +type: object +title: auto-update +description: The Ocean Kubernetes AutoUpdate object. +properties: + isEnabled: + type: boolean + description: Enable the Ocean Kubernetes AutoUpdate. + default: true + example: true \ No newline at end of file diff --git a/api/services/ocean/gke/schemas/oceanCluster.yaml b/api/services/ocean/gke/schemas/oceanCluster.yaml index 5657818b0..4f3fce745 100644 --- a/api/services/ocean/gke/schemas/oceanCluster.yaml +++ b/api/services/ocean/gke/schemas/oceanCluster.yaml @@ -41,6 +41,8 @@ properties: example: us-central1-a autoScaler: $ref: "../schemas/ocean-autoScaler.yaml" + autoUpdate: + $ref: "../schemas/ocean-autoUpdate.yaml" capacity: $ref: "../schemas/ocean-capacity.yaml" strategy: diff --git a/api/services/ocean/gke/schemas/oceanClusterCreate.yaml b/api/services/ocean/gke/schemas/oceanClusterCreate.yaml index 8a6bc2ad1..aa8255675 100644 --- a/api/services/ocean/gke/schemas/oceanClusterCreate.yaml +++ b/api/services/ocean/gke/schemas/oceanClusterCreate.yaml @@ -46,6 +46,8 @@ properties: example: us-central1-a autoScaler: $ref: "../schemas/ocean-autoScaler.yaml" + autoUpdate: + $ref: "../schemas/ocean-autoUpdate.yaml" capacity: $ref: "../schemas/ocean-capacity.yaml" strategy: diff --git a/api/services/ocean/gke/schemas/oceanClusterUpdate.yaml b/api/services/ocean/gke/schemas/oceanClusterUpdate.yaml index bae8b3ece..e6abfab64 100644 --- a/api/services/ocean/gke/schemas/oceanClusterUpdate.yaml +++ b/api/services/ocean/gke/schemas/oceanClusterUpdate.yaml @@ -19,6 +19,8 @@ properties: Add a name for the Ocean cluster. autoScaler: $ref: "../schemas/ocean-autoScaler.yaml" + autoUpdate: + $ref: "../schemas/ocean-autoUpdate.yaml" capacity: $ref: "../schemas/ocean-capacity.yaml" strategy: diff --git a/api/services/ocean/gke/schemas/oceanGkeImportResponse.yaml b/api/services/ocean/gke/schemas/oceanGkeImportResponse.yaml index 3be7c5c26..33cb6ee0b 100644 --- a/api/services/ocean/gke/schemas/oceanGkeImportResponse.yaml +++ b/api/services/ocean/gke/schemas/oceanGkeImportResponse.yaml @@ -34,6 +34,8 @@ properties: example: us-central1-a autoScaler: $ref: "../schemas/ocean-autoScaler.yaml" + autoUpdate: + $ref: "../schemas/ocean-autoUpdate.yaml" capacity: $ref: "../schemas/ocean-capacity.yaml" compute: From de000fb4adcd3916c33164f0b6ace8b4b7f9c4f9 Mon Sep 17 00:00:00 2001 From: avishagk Date: Sun, 1 Dec 2024 13:31:30 +0200 Subject: [PATCH 2/2] [src] - ocean gke - add explanation about AutoUpdate --- api/services/ocean/gke/schemas/ocean-autoUpdate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/ocean/gke/schemas/ocean-autoUpdate.yaml b/api/services/ocean/gke/schemas/ocean-autoUpdate.yaml index 0d5ffd973..bb6346abf 100644 --- a/api/services/ocean/gke/schemas/ocean-autoUpdate.yaml +++ b/api/services/ocean/gke/schemas/ocean-autoUpdate.yaml @@ -1,6 +1,6 @@ type: object title: auto-update -description: The Ocean Kubernetes AutoUpdate object. +description: The Ocean Kubernetes AutoUpdate object. If set to 'true' ocean will ensure that your clusters have an up to date configuration according to the respective GKE cluster. properties: isEnabled: type: boolean