Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions services/ske/src/stackit/ske/models/nodepool.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ class Nodepool(BaseModel):
machine: Machine
max_surge: Optional[StrictInt] = Field(default=None, alias="maxSurge")
max_unavailable: Optional[StrictInt] = Field(default=None, alias="maxUnavailable")
maximum: Annotated[int, Field(strict=True, ge=1)]
minimum: StrictInt
maximum: Annotated[int, Field(le=1000, strict=True, ge=1)] = Field(
description="Maximum number of nodes in the pool. During runtime, the cluster will never scale beyond 1000 nodes, even if the total maximum would allow for a larger cluster."
)
minimum: Annotated[int, Field(le=1000, strict=True)] = Field(
description="Minimum number of nodes in the pool. The sum of all minima must not exceed 1000."
)
name: StrictStr = Field(description="Maximum 15 chars")
taints: Optional[List[Taint]] = None
volume: Volume
Expand Down
Loading