Skip to content

Commit

Permalink
Con 31930 openapi (#686)
Browse files Browse the repository at this point in the history
* added scheduling

* added scheduling

* added scheduling to vng template

---------

Co-authored-by: yardenE <41858765+yardenE@users.noreply.github.com>
  • Loading branch information
noasaunders219 and yardenE authored Dec 8, 2024
1 parent 7bd6dc1 commit 0f3ec14
Showing 4 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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"
$ref: "../../schemas/ocean-vmSizes.yaml"
scheduling:
$ref: "../../schemas/virtualNodeGroup-scheduling.yaml"
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 2 additions & 0 deletions api/services/ocean/aks/schemas/ocean-virtualNodeGroup.yaml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions api/services/ocean/aks/schemas/virtualNodeGroup-scheduling.yaml
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 0f3ec14

Please sign in to comment.