diff --git a/dochub.yaml b/dochub.yaml index 5be028b..fb7f755 100644 --- a/dochub.yaml +++ b/dochub.yaml @@ -8,7 +8,7 @@ $package: # Описание description: Sber Enterprise Architect Framework # Версия - version: 1.2.4 + version: 1.2.5 # Зависимости от других пакетов dependencies: dochub: ">=3.9.0" diff --git a/entities/ba/parties/parties.yaml b/entities/ba/parties/parties.yaml index 3d058ac..f9371f7 100644 --- a/entities/ba/parties/parties.yaml +++ b/entities/ba/parties/parties.yaml @@ -18,7 +18,13 @@ entities: description: Продукты, потребляемые или потенциально интересные Участнику type: array items: - $ref: "#/$rels/seaf.ba.products.product" + type: object + properties: + id: + title: Идентификатор продукта + $ref: "#/$rels/seaf.ba.products.product" + required: + - id is_part_of: title: Является частью description: Отношение n к 1 для описания строгих иерархических связей diff --git a/entities/ta/presentation/components.yaml b/entities/ta/presentation/components.yaml index 14de2c8..b64a976 100644 --- a/entities/ta/presentation/components.yaml +++ b/entities/ta/presentation/components.yaml @@ -269,6 +269,66 @@ entities: template: templates/list.md source: > ( {'title': $self.title, 'id':$params."ta-component-id", "base-name":$split($self."$base", "/")[2]};) + seaf.ta.components.k8s_statefulset: + presentations: + table: + type: table + headers: + - value: title + text: Наименование + sortable: true + align: left + width: 20% + link: link + + - value: description + text: Описание + sortable: true + align: left + width: 20% + link: link + + - value: availabilityzone_id + text: Availability Zone ID + sortable: true + align: left + width: 20% + + - value: kubernetes_id + text: Kubernetes cluster ID + sortable: true + align: left + width: 20% + + source: > + ( + [[$."seaf.ta.components.k8s_statefulset".$spread().( + $COMPONENT_ID := $keys()[0]; + $.*.{ + "title": title, + "description": description, + "kubernetes_id": kubernetes_id, + "availabilityzone_id": availabilityzone_id, + "link": '/entities/seaf.ta.components.k8s_deployment/list?ta-component-id=' & $COMPONENT_ID + } + )]^(title)] + ) + + + list: + title: Карточка спецификации + params: + type: object + properties: + seaf-ta-component-id: + title: Идентификатор спецификации k8s statefulset + type: string + required: + - ta-component-id + type: markdown + template: templates/list.md + source: > + ( {'title': $self.title, 'id':$params."ta-component-id", "base-name":$split($self."$base", "/")[2]};) seaf.ta.components.k8s_pod: presentations: table: diff --git a/entities/ta/presentation/templates/components.md b/entities/ta/presentation/templates/components.md index b35883d..fc57184 100644 --- a/entities/ta/presentation/templates/components.md +++ b/entities/ta/presentation/templates/components.md @@ -10,6 +10,9 @@ ## K8s Deployment ![K8s Deployment](@entity/seaf.ta.components.k8s_deployment/table) +## K8s StatefulSet +![K8s StatefulSet](@entity/seaf.ta.components.k8s_statefulset/table) + ## K8s POD ![POD K8s](@entity/seaf.ta.components.k8s_pod/table)