From 1b0291d175cf32e539a3895340759a5bef01b4d0 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Date: Mon, 4 Mar 2024 10:53:22 -0300 Subject: [PATCH 1/2] OCM-6454 | feat: add component routes attribute --- .../v1/component_route_kind_type.model | 22 +++++++++++++++++ .../v1/component_route_type.model | 24 +++++++++++++++++++ model/clusters_mgmt/v1/ingress_type.model | 3 +++ 3 files changed, 49 insertions(+) create mode 100644 model/clusters_mgmt/v1/component_route_kind_type.model create mode 100644 model/clusters_mgmt/v1/component_route_type.model 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 } From ff02f7def25969888bfcd712c2bb5eed53d13ec1 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Date: Mon, 4 Mar 2024 11:55:31 -0300 Subject: [PATCH 2/2] OCM-6454 | chore: Release 0.0.360 --- CHANGES.md | 3 +++ 1 file changed, 3 insertions(+) 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`.