diff --git a/services/ske/model_cluster_error.go b/services/ske/model_cluster_error.go index f252f9a63..ba64415e7 100644 --- a/services/ske/model_cluster_error.go +++ b/services/ske/model_cluster_error.go @@ -75,7 +75,7 @@ type ClusterErrorGetMessageRetType = string // ClusterError struct for ClusterError // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClusterError struct { - // 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\"` + // 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\"` Code ClusterErrorGetCodeAttributeType `json:"code,omitempty"` Message ClusterErrorGetMessageAttributeType `json:"message,omitempty"` } diff --git a/services/ske/model_dns.go b/services/ske/model_dns.go index dd2b7af45..45fed29fc 100644 --- a/services/ske/model_dns.go +++ b/services/ske/model_dns.go @@ -45,6 +45,33 @@ func setDNSgetEnabledAttributeType(arg *DNSgetEnabledAttributeType, val DNSgetEn *arg = &val } +/* + types and functions for gatewayApi +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type DNSgetGatewayApiAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type DNSgetGatewayApiArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type DNSgetGatewayApiRetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getDNSgetGatewayApiAttributeTypeOk(arg DNSgetGatewayApiAttributeType) (ret DNSgetGatewayApiRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setDNSgetGatewayApiAttributeType(arg *DNSgetGatewayApiAttributeType, val DNSgetGatewayApiRetType) { + *arg = &val +} + /* types and functions for zones */ @@ -78,7 +105,9 @@ type DNS struct { // Enables the dns extension. // REQUIRED Enabled DNSgetEnabledAttributeType `json:"enabled" required:"true"` - // Array of domain filters for externalDNS, e.g., *.runs.onstackit.cloud. + // 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. + GatewayApi DNSgetGatewayApiAttributeType `json:"gatewayApi,omitempty"` + // Array of domain filters for ExternalDNS, e.g., *.runs.onstackit.cloud. Zones DNSGetZonesAttributeType `json:"zones,omitempty"` } @@ -125,6 +154,33 @@ func (o *DNS) SetEnabled(v DNSgetEnabledRetType) { setDNSgetEnabledAttributeType(&o.Enabled, v) } +// GetGatewayApi returns the GatewayApi field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *DNS) GetGatewayApi() (res DNSgetGatewayApiRetType) { + res, _ = o.GetGatewayApiOk() + return +} + +// GetGatewayApiOk returns a tuple with the GatewayApi field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *DNS) GetGatewayApiOk() (ret DNSgetGatewayApiRetType, ok bool) { + return getDNSgetGatewayApiAttributeTypeOk(o.GatewayApi) +} + +// HasGatewayApi returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *DNS) HasGatewayApi() bool { + _, ok := o.GetGatewayApiOk() + return ok +} + +// SetGatewayApi gets a reference to the given bool and assigns it to the GatewayApi field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *DNS) SetGatewayApi(v DNSgetGatewayApiRetType) { + setDNSgetGatewayApiAttributeType(&o.GatewayApi, v) +} + // GetZones returns the Zones field value if set, zero value otherwise. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DNS) GetZones() (res DNSGetZonesRetType) { @@ -158,6 +214,9 @@ func (o DNS) ToMap() (map[string]interface{}, error) { if val, ok := getDNSgetEnabledAttributeTypeOk(o.Enabled); ok { toSerialize["Enabled"] = val } + if val, ok := getDNSgetGatewayApiAttributeTypeOk(o.GatewayApi); ok { + toSerialize["GatewayApi"] = val + } if val, ok := getDNSGetZonesAttributeTypeOk(o.Zones); ok { toSerialize["Zones"] = val } diff --git a/services/ske/oas_commit b/services/ske/oas_commit index f87355dc7..9c5022a69 100644 --- a/services/ske/oas_commit +++ b/services/ske/oas_commit @@ -1 +1 @@ -b007357148d67833f3db635716935453d20a8609 +3a13c32150ad6578b965c14ef0db7ea69f8e6904 diff --git a/services/ske/v1api/model_cluster_error.go b/services/ske/v1api/model_cluster_error.go index b1a1abf90..cd1796d6b 100644 --- a/services/ske/v1api/model_cluster_error.go +++ b/services/ske/v1api/model_cluster_error.go @@ -19,7 +19,7 @@ var _ MappedNullable = &ClusterError{} // ClusterError struct for ClusterError type ClusterError struct { - // Possible values: `\"SKE_OBSERVABILITY_INSTANCE_NOT_FOUND\"`, `\"SKE_DNS_ZONE_NOT_FOUND\"`, `\"SKE_NODE_NO_VALID_HOST_FOUND\"`, `\"SKE_NODE_MISCONFIGURED_PDB\"`, `\"SKE_NODE_MACHINE_TYPE_NOT_FOUND\"`, `\"SKE_INFRA_SNA_NETWORK_NOT_FOUND\"`, `\"SKE_FETCHING_ERRORS_NOT_POSSIBLE\"` + // 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\"` Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/ske/v2api/model_cluster_error.go b/services/ske/v2api/model_cluster_error.go index 3ffd1b1e6..bd58c34f3 100644 --- a/services/ske/v2api/model_cluster_error.go +++ b/services/ske/v2api/model_cluster_error.go @@ -19,7 +19,7 @@ var _ MappedNullable = &ClusterError{} // ClusterError struct for ClusterError type ClusterError struct { - // 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\"` + // 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\"` Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/ske/v2api/model_dns.go b/services/ske/v2api/model_dns.go index cc4030123..472ee5315 100644 --- a/services/ske/v2api/model_dns.go +++ b/services/ske/v2api/model_dns.go @@ -22,7 +22,9 @@ var _ MappedNullable = &DNS{} type DNS struct { // Enables the dns extension. Enabled bool `json:"enabled"` - // Array of domain filters for externalDNS, e.g., *.runs.onstackit.cloud. + // 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. + GatewayApi *bool `json:"gatewayApi,omitempty"` + // Array of domain filters for ExternalDNS, e.g., *.runs.onstackit.cloud. Zones []string `json:"zones,omitempty"` AdditionalProperties map[string]interface{} } @@ -71,6 +73,38 @@ func (o *DNS) SetEnabled(v bool) { o.Enabled = v } +// GetGatewayApi returns the GatewayApi field value if set, zero value otherwise. +func (o *DNS) GetGatewayApi() bool { + if o == nil || IsNil(o.GatewayApi) { + var ret bool + return ret + } + return *o.GatewayApi +} + +// GetGatewayApiOk returns a tuple with the GatewayApi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DNS) GetGatewayApiOk() (*bool, bool) { + if o == nil || IsNil(o.GatewayApi) { + return nil, false + } + return o.GatewayApi, true +} + +// HasGatewayApi returns a boolean if a field has been set. +func (o *DNS) HasGatewayApi() bool { + if o != nil && !IsNil(o.GatewayApi) { + return true + } + + return false +} + +// SetGatewayApi gets a reference to the given bool and assigns it to the GatewayApi field. +func (o *DNS) SetGatewayApi(v bool) { + o.GatewayApi = &v +} + // GetZones returns the Zones field value if set, zero value otherwise. func (o *DNS) GetZones() []string { if o == nil || IsNil(o.Zones) { @@ -114,6 +148,9 @@ func (o DNS) MarshalJSON() ([]byte, error) { func (o DNS) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["enabled"] = o.Enabled + if !IsNil(o.GatewayApi) { + toSerialize["gatewayApi"] = o.GatewayApi + } if !IsNil(o.Zones) { toSerialize["zones"] = o.Zones } @@ -161,6 +198,7 @@ func (o *DNS) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "enabled") + delete(additionalProperties, "gatewayApi") delete(additionalProperties, "zones") o.AdditionalProperties = additionalProperties }