From 734ebba0861018c470f56492113822e8a755d7d6 Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Fri, 8 Mar 2024 17:52:16 +0100 Subject: [PATCH] feat: activate data-import --- src/main/helm/values.yaml | 102 +++++++++++++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/src/main/helm/values.yaml b/src/main/helm/values.yaml index 44d921d..af3d1bf 100644 --- a/src/main/helm/values.yaml +++ b/src/main/helm/values.yaml @@ -3,4 +3,104 @@ app: image: repository: "onecx/onecx-permission-svc" db: - enabled: true \ No newline at end of file + enabled: true + config: + enabled: true + values: | + tkit.dataimport.enabled=true + tkit.dataimport.configurations.permission.file=/deployments/data/data-import.json + tkit.dataimport.configurations.permission.enabled=true + data: + import: + enabled: true + mountPath: /deployments/data/data-import.json + values: |- + { + "products" : { + "onecx-permission" : { + "applications": { + "onecx-permission-bff": { + "name": "onecx-permission-bff", + "description": "onecx-permission-bff", + "permissions": { + "permission": { + "read": "permission on all GET requests and POST search", + "write": "permission on PUT, POST, PATCH requests, where objects are saved or updated", + "delete": "permission on all DELETE requests" + }, + "role": { + "read": "role on all GET requests and POST search", + "write": "role on PUT, POST, PATCH requests, where objects are saved or updated", + "delete": "role on all DELETE requests" + }, + "assignment": { + "read": "assignment on all GET requests and POST search", + "write": "assignment on PUT, POST, PATCH requests, where objects are saved or updated", + "delete": "assignment on all DELETE requests" + }, + "application": { + "read": "application on all GET requests and POST search", + "write": "application on PUT, POST, PATCH requests, where objects are saved or updated", + "delete": "application on all DELETE requests" + }, + "workspace": { + "read": "workspace on all GET requests and POST search", + "write": "workspace on PUT, POST, PATCH requests, where objects are saved or updated", + "delete": "workspace on all DELETE requests" + } + } + }, + "onecx-permission-ui": { + "name": "onecx-permission-ui", + "description": "onecx-permission-ui", + "permissions": { + "APP": { + "EDIT": "Edit app", + "SAVE": "Update and save app", + "SEARCH": "Search apps", + "VIEW": "View mode for app" + }, + "PERMISSION": { + "GRANT": "Assign or remove assignment of a permission to a role", + "CREATE": "Create permission", + "DELETE": "Delete permission", + "EDIT": "Edit app", + "SAVE": "Update and save app" + }, + "ROLE": { + "CREATE": "Create role", + "DELETE": "Delete role", + "EDIT": "Edit app", + "SAVE": "Update and save app" + } + } + } + } + } + }, + "tenants": { + "default": { + "roles": { + "onecx-admin": { + "description": "onecx-admin", + "assignments": { + "onecx-permission": { + "onecx-permission-bff": { + "permission": [ "read", "write", "delete"], + "role": [ "read", "write", "delete"], + "assignment": [ "read", "write", "delete"], + "application": [ "read", "write", "delete"], + "workspace": [ "read", "write", "delete"] + }, + "onecx-permission-ui": { + "APP": [ "EDIT", "SAVE", "SEARCH", "VIEW" ], + "PERMISSION": [ "GRANT", "CREATE", "DELETE", "EDIT", "SAVE" ], + "ROLE": [ "CREATE", "DELETE", "EDIT", "SAVE" ] + } + } + } + } + } + } + } + }