Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
- **Feature:** new models: `DisableLockResponse`, `EnableLockResponse`, `GetLockResponse`, `GetScheduleResponse`, `GetSnapshotPolicyResponse`, `ListSchedulesResponse`, `ListSnapshotPoliciesResponse`, `ResourcePoolSnapshotPolicy`, `Schedule`, `SnapshotPolicy`, `SnapshotPolicySchedule`, `UpdateResourcePoolSnapshotPayload`, `UpdateResourcePoolSnapshotResponse`
- **Feature:** new operations: `UpdateResourcePoolSnapshot`, `ListSchedules`, `GetSchedule`, `ListSnapshotPolicies`, `GetSnapshotPolicy`, `DisableLock`, `GetLock`, `EnableLock`,
- `ske`:
- [v1.10.0](services/ske/CHANGELOG.md#v1100)
- **Improvement:** Update description of `code` attribute in `ClusterError`
- **Feature:** Add attribute `GatewayApi` to model `DNS`
- [v1.9.0](services/ske/CHANGELOG.md#v190)
- **Feature:** regenerate with openapi-generator v7.22.0
- [v1.8.0](services/ske/CHANGELOG.md#v180)
Expand Down
4 changes: 4 additions & 0 deletions services/ske/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.10.0
- **Improvement:** Update description of `code` attribute in `ClusterError`
- **Feature:** Add attribute `GatewayApi` to model `DNS`

## v1.9.0
- **Feature:** regenerate with openapi-generator v7.22.0

Expand Down
2 changes: 1 addition & 1 deletion services/ske/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a35d8f28738a45005b098b66b6debd08a67ab018
5e44a8a3aa0447f4f0511f53cc4eead9b6e6384e
2 changes: 1 addition & 1 deletion services/ske/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "stackit-ske"
version = "v1.9.0"
version = "v1.10.0"
description = "SKE-API"
authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
requires-python = ">=3.9,<4.0"
Expand Down
2 changes: 1 addition & 1 deletion services/ske/src/stackit/ske/models/cluster_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ClusterError(BaseModel):

code: Optional[StrictStr] = Field(
default=None,
description='Possible values: `"SKE_INFRA_SNA_NETWORK_NOT_FOUND"`, `"SKE_INFRA_SNA_NETWORK_NO_ROUTER"`, `"SKE_NODE_NO_VALID_HOST_FOUND"`, `"SKE_NODE_MISCONFIGURED_PDB"`, `"SKE_NODE_MACHINE_TYPE_NOT_FOUND"`, `"SKE_NETWORK_NO_DNS_CONFIGURED"`, `"SKE_NETWORK_NO_AVAILABLE_IPS"`, `"SKE_NODE_MEMORY_PRESSURE"`, `"SKE_NODE_DISK_PRESSURE"`, `"SKE_NODE_PID_PRESSURE"`, `"SKE_OBSERVABILITY_INSTANCE_NOT_FOUND"`, `"SKE_OBSERVABILITY_INSTANCE_NOT_READY"`, `"SKE_DNS_ZONE_NOT_FOUND"`, `"SKE_FETCHING_ERRORS_NOT_POSSIBLE"`',
description='Possible values: `"SKE_INFRA_SNA_NETWORK_NOT_FOUND"`, `"SKE_INFRA_SNA_NETWORK_NO_ROUTER"`, `"SKE_NODE_NO_VALID_HOST_FOUND"`, `"SKE_NODE_MISCONFIGURED_PDB"`, `"SKE_NODE_MACHINE_TYPE_NOT_FOUND"`, `"SKE_NETWORK_NO_DNS_CONFIGURED"`, `"SKE_NETWORK_NO_AVAILABLE_IPS"`, `"SKE_NODE_MEMORY_PRESSURE"`, `"SKE_NODE_DISK_PRESSURE"`, `"SKE_NODE_PID_PRESSURE"`, `"SKE_OBSERVABILITY_INSTANCE_NOT_FOUND"`, `"SKE_OBSERVABILITY_INSTANCE_NOT_READY"`, `"SKE_DNS_ZONE_NOT_FOUND"`, `"SKE_SNA_DOES_NOT_SUPPORT_SERVICE_ROUTES"`, `"SKE_FETCHING_ERRORS_NOT_POSSIBLE"`',
)
message: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["code", "message"]
Expand Down
13 changes: 10 additions & 3 deletions services/ske/src/stackit/ske/models/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ class DNS(BaseModel):
""" # noqa: E501

enabled: StrictBool = Field(description="Enables the dns extension.")
gateway_api: Optional[StrictBool] = Field(
default=None,
description="Enables Gateway API support for ExternalDNS. The CRDs must be installed by the user. Once installed, ExternalDNS will be configured at the next cluster reconcile.",
alias="gatewayApi",
)
zones: Optional[Annotated[List[Annotated[str, Field(strict=True)]], Field(max_length=20)]] = Field(
default=None, description="Array of domain filters for externalDNS, e.g., *.runs.onstackit.cloud."
default=None, description="Array of domain filters for ExternalDNS, e.g., *.runs.onstackit.cloud."
)
__properties: ClassVar[List[str]] = ["enabled", "zones"]
__properties: ClassVar[List[str]] = ["enabled", "gatewayApi", "zones"]

model_config = ConfigDict(
validate_by_name=True,
Expand Down Expand Up @@ -81,5 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({"enabled": obj.get("enabled"), "zones": obj.get("zones")})
_obj = cls.model_validate(
{"enabled": obj.get("enabled"), "gatewayApi": obj.get("gatewayApi"), "zones": obj.get("zones")}
)
return _obj
Loading