diff --git a/CHANGES.md b/CHANGES.md index 4ab042af..fd6c543a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,9 @@ This document describes the relevant changes between releases of the API model. +## 0.0.360 Mar 04 2024 +- Add `ComponentRoutes` attribute to `Ingress`. + ## 0.0.359 Feb 28 2024 - Add `ExternalAuthConfig` resource to `Cluster`. diff --git a/model/clusters_mgmt/v1/component_route_kind_type.model b/model/clusters_mgmt/v1/component_route_kind_type.model new file mode 100644 index 00000000..ae6b99e8 --- /dev/null +++ b/model/clusters_mgmt/v1/component_route_kind_type.model @@ -0,0 +1,22 @@ +/* +Copyright (c) 2024 Red Hat, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Type of Component Route. +enum ComponentRouteType { + Oauth + Downloads + Console +} diff --git a/model/clusters_mgmt/v1/component_route_type.model b/model/clusters_mgmt/v1/component_route_type.model new file mode 100644 index 00000000..7ff6d025 --- /dev/null +++ b/model/clusters_mgmt/v1/component_route_type.model @@ -0,0 +1,24 @@ +/* +Copyright (c) 2024 Red Hat, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Representation of a Component Route. +class ComponentRoute { + // Hostname of the route. + Hostname String + + // TLS Secret reference of the route. + TlsSecretRef String +} diff --git a/model/clusters_mgmt/v1/ingress_type.model b/model/clusters_mgmt/v1/ingress_type.model index 16e1772f..98480e44 100644 --- a/model/clusters_mgmt/v1/ingress_type.model +++ b/model/clusters_mgmt/v1/ingress_type.model @@ -45,4 +45,7 @@ class Ingress { // Cluster routes TLS Secret reference. ClusterRoutesTlsSecretRef String + + // Component Routes settings. + ComponentRoutes [ComponentRouteType]ComponentRoute }