From 1de61a524222e135c5cc638fa701c691a028bf2c Mon Sep 17 00:00:00 2001 From: Lucas Ponce Date: Fri, 1 Sep 2023 10:39:25 +0200 Subject: [PATCH] feat: add Topology field on ServerConfig model --- .../v1/provision_shard_topology_type.model | 22 +++++++++++++++++++ .../clusters_mgmt/v1/server_config_type.model | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 model/clusters_mgmt/v1/provision_shard_topology_type.model diff --git a/model/clusters_mgmt/v1/provision_shard_topology_type.model b/model/clusters_mgmt/v1/provision_shard_topology_type.model new file mode 100644 index 00000000..2becf3ad --- /dev/null +++ b/model/clusters_mgmt/v1/provision_shard_topology_type.model @@ -0,0 +1,22 @@ +/* +Copyright (c) 2023 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. +*/ + +enum ProvisionShardTopology { + + // Provision shard for hosted clusters is configured in a "dedicated" topology + @json(name = "dedicated") + Dedicated +} diff --git a/model/clusters_mgmt/v1/server_config_type.model b/model/clusters_mgmt/v1/server_config_type.model index 0179bd2b..9970f637 100644 --- a/model/clusters_mgmt/v1/server_config_type.model +++ b/model/clusters_mgmt/v1/server_config_type.model @@ -21,4 +21,7 @@ class ServerConfig { // The kubeconfig of the server Kubeconfig String + + // The topology of a provision shard (Optional) + Topology ProvisionShardTopology }