diff --git a/CHANGELOG.md b/CHANGELOG.md index 72184863..cb2e18f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - New value `eu02` in region enum - `postgresflex`: [v1.0.0](services/postgresflex/CHANGELOG.md#v100-2025-02-27) - **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request. +- `ske`: [v0.4.0](services/ske/CHANGELOG.md#v040-2025-02-27) + - `Nodepool`: `maximum` and `minimum` must be <= 1000 ## Release (2025-02-11) diff --git a/services/ske/CHANGELOG.md b/services/ske/CHANGELOG.md index 638cc8d9..8857cf33 100644 --- a/services/ske/CHANGELOG.md +++ b/services/ske/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.4.0 (2025-02-27) + +- `Nodepool`: `maximum` and `minimum` must be <= 1000 + ## v0.3.0 (2025-02-06) - **Removal:** The following methods were removed after deprecation (2024-04-16) and [`serviceenablement` SDK](https://github.com/stackitcloud/stackit-sdk-python/tree/main/services/serviceenablement) must be used instead. diff --git a/services/ske/src/stackit/ske/models/nodepool.py b/services/ske/src/stackit/ske/models/nodepool.py index 7d1b6004..0bf62610 100644 --- a/services/ske/src/stackit/ske/models/nodepool.py +++ b/services/ske/src/stackit/ske/models/nodepool.py @@ -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