Skip to content

Commit 36a0d84

Browse files
Generate ske
1 parent 7727295 commit 36a0d84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: services/ske/src/stackit/ske/models/nodepool.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ class Nodepool(BaseModel):
4040
machine: Machine
4141
max_surge: Optional[StrictInt] = Field(default=None, alias="maxSurge")
4242
max_unavailable: Optional[StrictInt] = Field(default=None, alias="maxUnavailable")
43-
maximum: Annotated[int, Field(strict=True, ge=1)]
44-
minimum: StrictInt
43+
maximum: Annotated[int, Field(le=1000, strict=True, ge=1)] = Field(
44+
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."
45+
)
46+
minimum: Annotated[int, Field(le=1000, strict=True)] = Field(
47+
description="Minimum number of nodes in the pool. The sum of all minima must not exceed 1000."
48+
)
4549
name: StrictStr = Field(description="Maximum 15 chars")
4650
taints: Optional[List[Taint]] = None
4751
volume: Volume

0 commit comments

Comments
 (0)