diff --git a/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroup.yaml b/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroup.yaml index e47e9ad32..2c72f2479 100644 --- a/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroup.yaml +++ b/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroup.yaml @@ -91,4 +91,6 @@ properties: description: | A maximum of 10 unique key-value pairs for VM tags in the virtual node group. vmSizes: - $ref: "../../schemas/ocean-vmSizes.yaml" \ No newline at end of file + $ref: "../../schemas/ocean-vmSizes.yaml" + scheduling: + $ref: "../../schemas/virtualNodeGroup-scheduling.yaml" \ No newline at end of file diff --git a/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroupTemplate.yaml b/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroupTemplate.yaml index c50dd1d58..ea4a0ba84 100644 --- a/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroupTemplate.yaml +++ b/api/services/ocean/aks/schemas/create/ocean-virtualNodeGroupTemplate.yaml @@ -81,3 +81,5 @@ properties: A maximum of 10 unique key-value pairs for VM tags in the virtual node group. vmSizes: $ref: "../../schemas/ocean-vmSizes.yaml" + scheduling: + $ref: "../../schemas/virtualNodeGroup-scheduling.yaml" diff --git a/api/services/ocean/aks/schemas/ocean-virtualNodeGroup.yaml b/api/services/ocean/aks/schemas/ocean-virtualNodeGroup.yaml index e0b0f46c3..dd82ed2dd 100644 --- a/api/services/ocean/aks/schemas/ocean-virtualNodeGroup.yaml +++ b/api/services/ocean/aks/schemas/ocean-virtualNodeGroup.yaml @@ -93,6 +93,8 @@ properties: A maximum of 10 unique key-value pairs for VM tags in the virtual node group. vmSizes: $ref: "../schemas/ocean-vmSizes.yaml" + scheduling: + $ref: "../schemas/virtualNodeGroup-scheduling.yaml" createdAt: type: string readOnly: true diff --git a/api/services/ocean/aks/schemas/virtualNodeGroup-scheduling.yaml b/api/services/ocean/aks/schemas/virtualNodeGroup-scheduling.yaml new file mode 100644 index 000000000..d3bbbe889 --- /dev/null +++ b/api/services/ocean/aks/schemas/virtualNodeGroup-scheduling.yaml @@ -0,0 +1,23 @@ +type: object +description: > + An object used to specify times when the virtual node group will turn off all its node pools. Once the shutdown time will be over, the virtual node group will return to its previous state. +title: Ocean VNG AKS Scheduling +properties: + shutdownHours: + type: object + description: > + An object used to specify times that the nodes in the virtual node group will be stopped. + title: Shutdown Hours + properties: + timeWindows: + type: array + description: > + The times that the shutdown hours will apply. Required if isEnabled is true. + items: + type: string + example: "Sat:08:00-Sun:08:00" + isEnabled: + type: boolean + example: true + description: > + Flag to enable or disable the shutdown hours mechanism. When False, the mechanism is deactivated, and the virtual node gorup remains in its current state. \ No newline at end of file