Compare commits

..

19 Commits

Author SHA1 Message Date
4175a39dd2 APIG Dev-Guide to internal
All checks were successful
gl/check check status: success (4175a39dd2d8a01d97849f720bbad61717d8f02e)
gl/gate gate status: success (4175a39dd2d8a01d97849f720bbad61717d8f02e)
2024-06-03 12:54:45 +00:00
f217cafb1b Add environment filter to services_by_category
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2024-05-29 10:59:13 +00:00
663cfbed75 hss api &um public
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-committed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
2024-05-29 10:15:18 +00:00
c7487fc72e Rename service GaussDB noSQL to GeminiDB
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-committed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
2024-05-28 12:01:38 +00:00
482da3c6a3 Change Compute title to Computing
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2024-05-28 09:30:47 +00:00
43bbbe9e58 New service ASM
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-committed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
2024-05-17 10:39:06 +00:00
fdd17acc16 update metadata for er service
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Drobnak, David <david.drobnak@t-systems.com>
Co-committed-by: Drobnak, David <david.drobnak@t-systems.com>
2024-05-17 10:28:23 +00:00
59a2ba8137 Update 'otc_metadata/data/documents/dli-dev.yaml'
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Nagy, Zsolt <z.nagy@t-systems.com>
Co-committed-by: Nagy, Zsolt <z.nagy@t-systems.com>
2024-05-15 08:45:45 +00:00
2275b9ddfd adding dev guide for apig and fixing modelarts
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2024-05-15 07:58:34 +00:00
ac79a500b4 Change environment to PUBLIC
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-committed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
2024-04-22 19:49:56 +00:00
90a9117b8d creation cfw.yaml file
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-committed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
2024-04-18 07:25:21 +00:00
61f2419fab Remove bigdata-ai-rw permission for apig service
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-committed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
2024-04-12 07:56:42 +00:00
516716bf33 changing the team as fg is now in PAAS
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2024-04-12 06:32:30 +00:00
a3b9946169 adding AOM2 as new service/documents
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2024-04-11 07:18:51 +00:00
7af1b5dcdb release function graph in public
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2024-04-08 13:21:09 +00:00
be8fad03bc removed environment: internal for ocr
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-committed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
2024-04-02 15:25:26 +00:00
92bf54ed0b make blueprints internal in AC
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2024-03-08 09:57:21 +00:00
842a30fe3d fix public only service left out in metadata.yaml
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2024-03-08 09:57:11 +00:00
c7558639bb remove html location from Cloud Create to avoid issue on docs-export generation script
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2024-02-27 14:38:12 +00:00
39 changed files with 194 additions and 41 deletions

View File

@ -1,5 +1,5 @@
--- ---
environment: public environment: internal
link: /architecture-center/caf/ link: /architecture-center/caf/
pdf_name: architecture-center-cloud-adoption-framework pdf_name: architecture-center-cloud-adoption-framework
rst_location: doc/caf/source rst_location: doc/caf/source

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: usermanual2/aom
html_location: docs/aom/umn2
link: /application-operations-management/umn2/
pdf_name: aom-umn2.0
rst_location: umn2/source
service_type: aom
title: User Guide 2.0
type: umn2

View File

@ -0,0 +1,10 @@
---
environment: internal
hc_location: api/aom2
html_location: docs/aom2/api-ref
link: /application-operations-management-2/api-ref/
pdf_name: aom2-api-ref
rst_location: api-ref/source
service_type: aom2
title: API Reference
type: api-ref

View File

@ -0,0 +1,10 @@
---
environment: internal
hc_location: usermanual/aom2
html_location: docs/aom2/umn
link: /application-operations-management-2/umn/
pdf_name: aom2-umn
rst_location: umn/source
service_type: aom2
title: User Guide
type: umn

View File

@ -0,0 +1,10 @@
---
environment: hidden
hc_location: devg/apig
html_location: docs/apig/dev
link: /api-gateway/dev-guide/
pdf_name: apig-dev-guide
rst_location: dev_guide/source
service_type: apig
title: Developer Guide
type: dev

View File

@ -0,0 +1,10 @@
---
environment: internal
hc_location: api/asm
html_location: docs/asm/api-ref
link: /application-service-mesh/api-ref/
pdf_name: asm-api-ref
rst_location: api-ref/source
service_type: asm
title: API Reference
type: api-ref

View File

@ -0,0 +1,10 @@
---
hc_location: bestpractice/asm
environment: internal
html_location: docs/asm/best-practice
link: /application-service-mesh/best-practice/
pdf_name: asm-best-practice
rst_location: doc/best-practice/source
service_type: asm
title: Best Practice
type: best-practice

View File

@ -0,0 +1,10 @@
---
environment: internal
hc_location: usermanual/asm
html_location: docs/asm/umn
link: /application-service-mesh/umn/
pdf_name: asm-umn
rst_location: umn/source
service_type: asm
title: User Guide
type: umn

View File

@ -0,0 +1,10 @@
---
environment: internal
hc_location: api/cfw
html_location: docs/cfw/api-ref
link: /cloud-firewall/api-ref/
pdf_name: cfw-api-ref
rst_location: api-ref/source
service_type: cfw
title: API Reference
type: api-ref

View File

@ -0,0 +1,10 @@
---
environment: internal
hc_location: usermanual/cfw
html_location: docs/cfw/umn
link: /cloud-firewall/umn/
pdf_name: cfw-umn
rst_location: umn/source
service_type: cfw
title: User Guide
type: umn

View File

@ -1,6 +1,6 @@
--- ---
hc_location: api/ddm hc_location: api/ddm
environment: internal environment: public
html_location: docs/ddm/api-ref html_location: docs/ddm/api-ref
link: /distributed-database-middleware/api-ref/ link: /distributed-database-middleware/api-ref/
pdf_name: ddm-api-ref pdf_name: ddm-api-ref

View File

@ -1,6 +1,6 @@
--- ---
hc_location: usermanual/ddm hc_location: usermanual/ddm
environment: internal environment: public
html_location: docs/ddm/umn html_location: docs/ddm/umn
link: /distributed-database-middleware/umn/ link: /distributed-database-middleware/umn/
pdf_name: ddm-umn pdf_name: ddm-umn

View File

@ -1,5 +1,4 @@
--- ---
environment: internal
hc_location: devg/dli hc_location: devg/dli
html_location: docs/dli/dev html_location: docs/dli/dev
link: /data-lake-insight/dev-guide/ link: /data-lake-insight/dev-guide/

View File

@ -1,6 +1,5 @@
--- ---
hc_location: api/er hc_location: api/er
environment: internal
html_location: docs/er/api-ref html_location: docs/er/api-ref
link: /enterprise-router/api-ref/ link: /enterprise-router/api-ref/
pdf_name: er-api-ref pdf_name: er-api-ref

View File

@ -1,6 +1,5 @@
--- ---
hc_location: usermanual/er hc_location: usermanual/er
environment: internal
html_location: docs/er/umn html_location: docs/er/umn
link: /enterprise-router/umn/ link: /enterprise-router/umn/
pdf_name: er-umn pdf_name: er-umn

View File

@ -1,6 +1,5 @@
--- ---
hc_location: api/functiongraph hc_location: api/functiongraph
environment: internal
html_location: docs/fg/api-ref html_location: docs/fg/api-ref
link: /function-graph/api-ref/ link: /function-graph/api-ref/
pdf_name: fg-api-ref pdf_name: fg-api-ref

View File

@ -1,6 +1,5 @@
--- ---
hc_location: usermanual/functiongraph hc_location: usermanual/functiongraph
environment: internal
html_location: docs/fg/umn html_location: docs/fg/umn
link: /function-graph/umn/ link: /function-graph/umn/
pdf_name: fg-umn pdf_name: fg-umn

View File

@ -0,0 +1,10 @@
---
hc_location: api/nosql
environment: internal
html_location: docs/geminidb/api-ref
link: /geminidb/api-ref/
pdf_name: geminidb-api-ref
rst_location: api-ref/source
service_type: geminidb
title: API Reference
type: api-ref

View File

@ -0,0 +1,10 @@
---
environment: internal
hc_location: usermanual/nosql
html_location: docs/geminidb/umn
link: /geminidb/umn/
pdf_name: geminidb-umn
rst_location: umn/source
service_type: geminidb
title: User Guide
type: umn

View File

@ -1,6 +1,5 @@
--- ---
hc_location: api/hss2.0 hc_location: api/hss2.0
environment: internal
html_location: docs/hss/api-ref html_location: docs/hss/api-ref
link: /host-security-service/api-ref/ link: /host-security-service/api-ref/
pdf_name: hss-api-ref pdf_name: hss-api-ref

View File

@ -1,6 +1,5 @@
--- ---
hc_location: usermanual/hss2.0 hc_location: usermanual/hss2.0
environment: internal
html_location: docs/hss/umn html_location: docs/hss/umn
link: /host-security-service/umn/ link: /host-security-service/umn/
pdf_name: hss-umn pdf_name: hss-umn

View File

@ -1,5 +1,5 @@
--- ---
hc_location: api/ma hc_location: api/modelarts
html_location: docs/modelarts/api-ref html_location: docs/modelarts/api-ref
link: /modelarts/api-ref/ link: /modelarts/api-ref/
pdf_name: ma-api-ref pdf_name: ma-api-ref

View File

@ -1,5 +1,5 @@
--- ---
hc_location: sdk/ma hc_location: sdk/modelarts
html_location: docs/modelarts/sdk-ref html_location: docs/modelarts/sdk-ref
link: /modelarts/sdk-ref/ link: /modelarts/sdk-ref/
pdf_name: ma-sdk-ref pdf_name: ma-sdk-ref

View File

@ -1,5 +1,5 @@
--- ---
hc_location: usermanual/ma hc_location: usermanual/modelarts
html_location: docs/modelarts/umn html_location: docs/modelarts/umn
link: /modelarts/umn/ link: /modelarts/umn/
pdf_name: ma-umn pdf_name: ma-umn

View File

@ -1,6 +1,5 @@
--- ---
hc_location: api/ocr hc_location: api/ocr
environment: internal
html_location: docs/ocr/api-ref html_location: docs/ocr/api-ref
link: /optical-character-recognition/api-ref/ link: /optical-character-recognition/api-ref/
pdf_name: ocr-api-ref pdf_name: ocr-api-ref

View File

@ -1,6 +1,5 @@
--- ---
hc_location: usermanual/ocr hc_location: usermanual/ocr
environment: internal
html_location: docs/ocr/umn html_location: docs/ocr/umn
link: /optical-character-recognition/umn/ link: /optical-character-recognition/umn/
pdf_name: ocr-umn pdf_name: ocr-umn

View File

@ -1,3 +1,3 @@
--- ---
name: compute name: compute
title: Compute title: Computing

View File

@ -0,0 +1,16 @@
---
environment: internal
repositories:
- environment: internal
repo: docs/application-operations-management-2
type: gitea
- environment: public
repo: opentelekomcloud-docs/application-operations-management-2
type: github
service_category: application
service_title: Application Operations Management 2.0
service_type: aom2
service_uri: application-operations-management-2
teams:
- name: docs-orchestration-rw
permission: write

View File

@ -12,7 +12,5 @@ service_title: API Gateway (APIG)
service_type: apig service_type: apig
service_uri: api-gateway service_uri: api-gateway
teams: teams:
- name: docs-bigdata-ai-rw
permission: write
- name: docs-orchestration-rw - name: docs-orchestration-rw
permission: write permission: write

View File

@ -0,0 +1,16 @@
---
environment: internal
repositories:
- environment: internal
repo: docs/application-service-mesh
type: gitea
- environment: public
repo: opentelekomcloud-docs/application-service-mesh
type: github
service_category: container
service_title: Application Service Mesh
service_type: asm
service_uri: application-service-mesh
teams:
- name: docs-container-rw
permission: write

View File

@ -0,0 +1,16 @@
---
environment: internal
repositories:
- environment: internal
repo: docs/cloud-firewall
type: gitea
- environment: public
repo: opentelekomcloud-docs/cloud-firewall
type: github
service_category: security-services
service_title: Cloud Firewall
service_type: cfw
service_uri: cloud-firewall
teams:
- name: docs-security-services-rw
permission: write

View File

@ -1,5 +1,5 @@
--- ---
environment: internal environment: public
repositories: repositories:
- environment: internal - environment: internal
repo: docs/distributed-database-middleware repo: docs/distributed-database-middleware

View File

@ -1,5 +1,5 @@
--- ---
environment: internal environment: public
repositories: repositories:
- environment: internal - environment: internal
repo: docs/enterprise-router repo: docs/enterprise-router

View File

@ -1,5 +1,5 @@
--- ---
environment: internal environment: public
repositories: repositories:
- environment: internal - environment: internal
repo: docs/function-graph repo: docs/function-graph
@ -12,5 +12,5 @@ service_title: FunctionGraph
service_type: fg service_type: fg
service_uri: function-graph service_uri: function-graph
teams: teams:
- name: docs-container-rw - name: docs-orchestration-rw
permission: write permission: write

View File

@ -0,0 +1,16 @@
---
environment: internal
repositories:
- environment: internal
repo: docs/geminidb
type: gitea
- environment: public
repo: opentelekomcloud-docs/geminidb
type: github
service_category: database
service_title: GeminiDB
service_type: geminidb
service_uri: geminidb
teams:
- name: docs-database-rw
permission: write

View File

@ -1,5 +1,5 @@
--- ---
environment: internal environment: public
repositories: repositories:
- environment: internal - environment: internal
repo: docs/host-security-service repo: docs/host-security-service

View File

@ -1,5 +1,5 @@
--- ---
environment: internal environment: public
repositories: repositories:
- environment: internal - environment: internal
repo: docs/optical-character-recognition repo: docs/optical-character-recognition

View File

@ -87,10 +87,13 @@ class Services(object):
res.append(copy.deepcopy(cat)) res.append(copy.deepcopy(cat))
return res return res
def services_by_category(self, category): def services_by_category(self, category, environment=None):
"""List services matching category""" """List services matching category"""
res = [] res = []
for srv in self.all_services: for srv in self.all_services:
if environment:
if "environment" in srv and srv["environment"] != environment:
continue
if srv["service_category"] == category: if srv["service_category"] == category:
res.append(copy.deepcopy(srv)) res.append(copy.deepcopy(srv))
return res return res
@ -246,12 +249,19 @@ class Services(object):
x for x in srv["teams"] if x["permission"] == "write" x for x in srv["teams"] if x["permission"] == "write"
] ]
if "repositories" in srv and environment: if "repositories" in srv and environment:
internal_exists = False
for repo in srv["repositories"]: for repo in srv["repositories"]:
if ( if (
"environment" in repo "environment" in repo
and repo["environment"] == environment and repo["environment"] == environment
): ):
srv_res["repository"] = repo["repo"] srv_res["repository"] = repo["repo"]
if repo["environment"] == "internal":
internal_exists = True
# internal repo does not exist
# service will be left out from metadata.yaml
if not internal_exists:
continue
for doc in self.all_docs: for doc in self.all_docs:
if ( if (
"html_location" in doc "html_location" in doc

View File

@ -95,12 +95,12 @@ def process_repositories(args, service):
f"due to the doc-type filter." f"due to the doc-type filter."
) )
continue continue
if doc.get("environment"): # if doc.get("environment"):
logging.info( # logging.info(
f"Skipping synchronizing {doc['title']} " # f"Skipping synchronizing {doc['title']} "
f"since it is environment bound." # f"since it is environment bound."
) # )
continue # continue
branch_name = f"{args.branch_name}#{doc['type']}" branch_name = f"{args.branch_name}#{doc['type']}"
remote_ref = SymbolicReference.create( remote_ref = SymbolicReference.create(