diff --git a/helm/microfrontend.json b/helm/microfrontend.json deleted file mode 100644 index 5fe7369..0000000 --- a/helm/microfrontend.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "id": "THEME_UI", - {{- if .Values.app.routing.hostName }} - "remoteEntry": "https://{{ .Values.app.routing.hostName }}{{ .Values.app.routing.path }}remoteEntry.js", - {{- else if .Values.global.hostName }} - "remoteEntry": "https://{{ .Values.global.hostName }}{{ .Values.app.routing.path }}remoteEntry.js", - {{- end }} - "remoteName": "ThemeModule", - {{- if .Values.app.routing.hostName }} - "remoteBaseUrl": "https://{{ .Values.app.routing.hostName }}{{ .Values.app.routing.path }}", - {{- else if .Values.global.hostName }} - "remoteBaseUrl": "https://{{ .Values.global.hostName }}{{ .Values.app.routing.path }}", - {{- end }} - "exposedModule": "./ThemeMgmtModule", - "displayName": "ThemeMgmtModule", - "moduleType": "ANGULAR", - "wcTagName": "UPMF", - "appVersion": "{{ .Chart.Version }}", - "note": "Theme Mgmt module auto import via MF operator", - "contact": "onecx@1000kit.org" -} diff --git a/helm/permissions.csv b/helm/permissions.csv deleted file mode 100644 index 920d11d..0000000 --- a/helm/permissions.csv +++ /dev/null @@ -1,9 +0,0 @@ -PERMISSION NAME;PERMISSION_KEY;onecx-theme-admin;onecx-theme-user; -Theme create;THEME#CREATE;x;; -Theme delete;THEME#DELETE;x;; -Theme edit;THEME#EDIT;x;; -Theme save;THEME#SAVE;x;; -Theme import;THEME#IMPORT;x;; -Theme export;THEME#EXPORT;x;; -Theme detail page;THEME#VIEW;x;x; -Theme search page;THEME#SEARCH;x;x; \ No newline at end of file diff --git a/helm/templates/apm-csv.cm.yaml b/helm/templates/apm-csv.cm.yaml deleted file mode 100644 index e9dccc5..0000000 --- a/helm/templates/apm-csv.cm.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "{{ .Release.Name }}-apm-config" - annotations: - appId: {{ .Release.Name }} - filename: "permissions.csv" - labels: - app: {{ .Release.Name }} -{{ include "angular.labels.common" .Subcharts.app | indent 4 }} -data: - permissions.csv: |- -{{ $.Files.Get "permissions.csv" | indent 4 }} - diff --git a/helm/templates/mf-config.yaml b/helm/templates/mf-config.yaml deleted file mode 100644 index cefc585..0000000 --- a/helm/templates/mf-config.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: 'theme-mgmt-ui-mf-config' -data: - microfrontend: |- -{{ tpl (.Files.Get "microfrontend.json") . | indent 4 }} diff --git a/helm/values.yaml b/helm/values.yaml index 8b6806d..cab2971 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,9 +4,31 @@ app: repository: 'onecx/onecx-theme-ui' routing: enabled: true + path: /ui/mfe/theme/ + operator: - apm: - enabled: false + # Microfrontend + microfrontend: + enabled: true + spec: + exposedModule: "./ThemeMgmtModule" + description: "Theme Mgmt module" + note: "Theme Mgmt module auto import via MF operator" + # Permission + permission: + enabled: true + spec: + permissions: + THEME: + CREATE: Create theme + EDIT: Edit theme + DELETE: Delete theme + SAVE: Update and save theme + IMPORT: Import theme + EXPORT: Export theme + VIEW: View mode for theme + SEARCH: Search theme + # Keycloak keycloak: enabled: true client: |-