From 3619fcb823d3d3e684e320b4e55c9462ab6efde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20Echterh=C3=B6lter?= Date: Fri, 31 Oct 2025 16:37:16 +0100 Subject: [PATCH] feat(namespace): add content configuration for account namespace view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bastian Echterhölter On-behalf-of: @SAP --- ...ontentconfiguration-account-namespace.yaml | 111 ++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 manifests/kcp/01-platform-mesh-system/contentconfiguration-account-namespace.yaml diff --git a/manifests/kcp/01-platform-mesh-system/contentconfiguration-account-namespace.yaml b/manifests/kcp/01-platform-mesh-system/contentconfiguration-account-namespace.yaml new file mode 100644 index 0000000..205ad06 --- /dev/null +++ b/manifests/kcp/01-platform-mesh-system/contentconfiguration-account-namespace.yaml @@ -0,0 +1,111 @@ +apiVersion: ui.platform-mesh.io/v1alpha1 +kind: ContentConfiguration +metadata: + labels: + ui.platform-mesh.io/entity: core_platform-mesh_io_account + name: account-namespace +spec: + inlineConfiguration: + content: |- + { + "name": "namespaces", + "creationTimestamp": "2022-05-17T11:37:17Z", + "luigiConfigFragment": { + "data": { + "nodes": [ + { + "pathSegment": "core_namespaces", + "navigationContext": "core_namespaces", + "label": "Namespaces", + "entityType": "main.core_platform-mesh_io_account", + "icon": "group-2", + "order": 110, + "loadingIndicator": { + "enabled": false + }, + "keepSelectedForChildren": true, + "url": "/assets/platform-mesh-portal-ui-wc.js#generic-list-view", + "webcomponent": { + "selfRegistered": true + }, + "context": { + "resourceDefinition": { + "group": "core", + "plural": "namespaces", + "singular": "namespace", + "kind": "Namespace", + "scope": "Cluster", + "namespace": null, + "ui": { + "listView": { + "fields": [ + { + "label": "Name", + "property": "metadata.name" + } + ] + }, + "detailView": { + "fields": [ + { + "label": "Name", + "property": "metadata.name" + } + ] + }, + "createView": { + "fields": [ + { + "label": "Name", + "property": "metadata.name", + "required": true + } + ] + } + } + } + }, + "children": [ + { + "pathSegment": ":namespaceId", + "hideFromNav": true, + "keepSelectedForChildren": false, + "defineEntity": { + "id": "core_namespace", + "contextKey": "namespaceId", + "graphqlEntity": { + "group": "core", + "kind": "Namespace", + "query": "{ metadata { name } }" + } + }, + "context": { + "accountId": ":accountId", + "namespaceId": ":namespaceId", + "resourceId": ":namespaceId" + } + } + ] + }, + { + "entityType": "main.core_platform-mesh_io_account.core_namespace", + "pathSegment": "dashboard", + "label": "Dashboard", + "order": 100, + "url": "/assets/platform-mesh-portal-ui-wc.js#generic-detail-view", + "webcomponent": { + "selfRegistered": true + }, + "defineEntity": { + "id": "dashboard" + }, + "compound": { + "children": [] + } + } + + ] + } + } + } + contentType: json \ No newline at end of file