Описание ClustersXml#
Структура, в которой хранится информация о принадлежности проектов к кластерам.
ClustersXml зависит от среды развертывания.
Параметр general.ClustersXml хранится в линеаризованном формате.
Общий вид ClustersXml:
<clusters>
<!-- Zero or more repetitions: -->
<cluster>
<!-- Имя кластера системы оркестрации приложений. Определяется по ссылке на кластер. Пример: cluster_name -->
<name>string</name>
<!-- Ссылка на кластер системы оркестрации приложений. Пример: https://api.cluster_name.ru:6443 -->
<href>string</href>
<!-- Optional: -->
<orchestratorProjectArray>
<!-- TODO: аттрибуты -->
<!-- Имя проекта системы оркестрации приложений. Пример: ci00000001-cluster-synapse-dev -->
<orchestratorProject stands="string" cpVersion="string" isControlPanel="string" secretName="string"
segment="string" isSystemProject="string">string
</orchestratorProject>
</orchestratorProjectArray>
</cluster>
</clusters>
XSD схема ClustersXml:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="clusters">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="cluster">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="href" type="xs:string" />
<xs:element name="orchestratorProjectArray">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="orchestratorProject">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="stands" type="xs:string" use="optional" />
<xs:attribute name="cpVersion" type="xs:string" use="optional" />
<xs:attribute name="isControlPanel" type="xs:string" use="optional" />
<xs:attribute name="secretName" type="xs:string" use="optional" />
<xs:attribute name="segment" type="xs:string" use="optional" />
<xs:attribute name="isSystemProject" type="xs:string" use="optional" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Пример:
<clusters>
<cluster>
<name>cluster</name>
<href>https://api.cluster.ru:6443</href>
<orchestratorProjectArray>
<orchestratorProject>ci00000001-project-name-1</orchestratorProject>
<orchestratorProject>ci00000001-project-name-2</orchestratorProject>
</orchestratorProjectArray>
</cluster>
</clusters>
Пример в линеаризованном формате:
<clusters><cluster><name>cluster</name><href>https://api.cluster.ru:6443</href><orchestratorProjectArray><orchestratorProject>ci00000001-project-name-1</orchestratorProject><orchestratorProject>ci00000001-project-name-2</orchestratorProject></orchestratorProjectArray></cluster></clusters>