Skip to content

Commit

Permalink
feat: migration tkit.org
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Feb 1, 2024
1 parent 63d7a53 commit 067fa75
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/operator-database.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.db.enabled }}
{{ if .Values.db.operator }}
apiVersion: onecx.github.io/v1
apiVersion: onecx.tkit.org/v1
kind: Database
metadata:
name: {{ template "app.fullname" $ }}-db
Expand Down
32 changes: 32 additions & 0 deletions templates/operator-microfrontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{ if .Values.operator.microfrontend.enabled }}
apiVersion: onecx.tkit.org/v1
kind: Microfrontend
metadata:
name: {{ include "app.fullname" . }}
labels:
app: {{ include "app.fullname" . }}
{{ include "app.labels.common" $ | indent 4 }}
spec:
appId: {{ .Values.operator.microfrontend.spec.appId | default (include "app.id" .) }}
appName: {{ .Values.operator.microfrontend.spec.appName | default (include "app.fullname" .) }}
appVersion: {{ template "app.version" $ }}
classifications: {{ .Values.operator.microfrontend.spec.classifications }}
contact: {{ .Values.operator.microfrontend.spec.contact }}
description: {{ .Values.operator.microfrontend.spec.description }}
exposedModule: {{ .Values.operator.microfrontend.spec.exposedModule }}
iconName: {{ .Values.operator.microfrontend.spec.iconName }}
note: {{ .Values.operator.microfrontend.spec.note }}
tagName: {{ .Values.operator.microfrontend.spec.tagName }}
remoteName: {{ .Values.operator.microfrontend.spec.remoteName }}
productName: {{ .Values.operator.microfrontend.spec.productName | default .Release.Name }}
remoteBaseUrl: {{ .Values.operator.microfrontend.spec.remoteBaseUrl | default .Values.routing.path }}
remoteEntry: {{ .Values.operator.microfrontend.spec.remoteBaseUrl | default .Values.routing.path }}{{ .Values.operator.microfrontend.entrySuffix }}
technology: {{ .Values.operator.microfrontend.spec.technology }}
{{ if (.Values.operator.microfrontend.spec.endpoints) }}
endpoints:
{{- range $item := .Values.operator.microfrontend.spec.endpoints }}
- name: {{ $item.name }}
path: {{ $item.path }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion templates/operator-permission.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Values.operator.permission.enabled }}
apiVersion: onecx.github.io/v1
apiVersion: onecx.tkit.org/v1
kind: Permission
metadata:
name: {{ include "app.fullname" . }}
Expand All @@ -8,5 +8,7 @@ metadata:
{{ include "app.labels.common" $ | indent 4 }}
spec:
appId: {{ .Values.operator.permission.spec.appId | default (include "app.fullname" .) }}
name: {{ .Values.operator.permission.spec.name | default (include "app.fullname" .) }}
description: appId: {{ .Values.operator.permission.spec.description | default (include "app.fullname" .) }}
permissions: {{ if .Values.operator.permission.spec.permissions }}{{ .Values.operator.permission.spec.permissions | toYaml | nindent 4 }}{{- end }}
{{- end }}
40 changes: 40 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ operator:
spec:
# default deployment name (release_name-name)
appId:
# application name (release_name-name)
name:
# application description (release_name-name)
description:
# map of permissions
# resource:
# action: description
Expand Down Expand Up @@ -193,3 +197,39 @@ operator:
roles:
# path to the realms JSON file
realms:

# microfrontend
microfrontend:
# enable or disable configuration for operator
enabled: false
# default remote entry path suffix
entrySuffix: remoteEntry.js

# definnition
spec:
description: change-me
exposedModule: change-me
iconName:
note: change-me
remoteName:
tagName:
# list of strings
classifications: []
# list of name and path
# - name:
# path:
endpoints:
# technology is free text
technology: ANGULAR
# contact email
contact: [email protected]
# default is app.routing.path
remoteBaseUrl:
# default is app.routing.path + entrySuffix
remoteEntry:
# default release name (product name)
productName:
# default deployment name (release_name-name or appId)
appId:
# default deployment name (release_name-name)
appName:

0 comments on commit 067fa75

Please sign in to comment.