From 79fb10ba26826039432459c9429f76d7e7e13e60 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Date: Thu, 31 Oct 2024 16:39:59 -0300 Subject: [PATCH] OCM-12240 | feat: include hcp shared vpc support --- model/clusters_mgmt/v1/aws_type.model | 6 +++++ .../clusters_mgmt/v1/cluster_arch_type.model | 24 +++++++++++++++++++ model/clusters_mgmt/v1/dns_domain_type.model | 3 +++ 3 files changed, 33 insertions(+) create mode 100644 model/clusters_mgmt/v1/cluster_arch_type.model diff --git a/model/clusters_mgmt/v1/aws_type.model b/model/clusters_mgmt/v1/aws_type.model index 7e3f694d..dbf31a86 100644 --- a/model/clusters_mgmt/v1/aws_type.model +++ b/model/clusters_mgmt/v1/aws_type.model @@ -62,6 +62,12 @@ struct AWS { // Role ARN for private hosted zone. PrivateHostedZoneRoleARN String + // ID of local private hosted zone for hypershift internal communication. + HcpInternalCommunicationHostedZoneId String + + // Role ARN for VPC Endpoint Service cross account role. + VpcEndpointRoleArn String + // Additional AWS Security Groups to be added to default worker (compute) machine pool. AdditionalComputeSecurityGroupIds []String diff --git a/model/clusters_mgmt/v1/cluster_arch_type.model b/model/clusters_mgmt/v1/cluster_arch_type.model new file mode 100644 index 00000000..d741c69f --- /dev/null +++ b/model/clusters_mgmt/v1/cluster_arch_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. +*/ + +// Possible cluster architectures. +enum ClusterArchitecture { + @json(name = "classic") + Classic + + @json(name = "hcp") + Hcp +} diff --git a/model/clusters_mgmt/v1/dns_domain_type.model b/model/clusters_mgmt/v1/dns_domain_type.model index eef47c65..94d4f083 100644 --- a/model/clusters_mgmt/v1/dns_domain_type.model +++ b/model/clusters_mgmt/v1/dns_domain_type.model @@ -27,4 +27,7 @@ class DNSDomain { // Indicates if this dns domain is user defined. UserDefined Boolean + + // Signals which cluster architecture the domain is ready for. + ClusterArch ClusterArchitecture }