Skip to content
Open
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
2 changes: 1 addition & 1 deletion services/ske/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a35d8f28738a45005b098b66b6debd08a67ab018
e59c86b86cea966ceea00bb01c604813f3ea1347
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