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 46bd924 commit 66a51a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion templates/operator-microfrontend.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Values.operator.microfrontend.enabled }}
apiVersion: onecx.github.io/v1
apiVersion: onecx.tkit.org/v1
kind: Microfrontend
metadata:
name: {{ include "app-angular.fullname" . }}
Expand All @@ -16,6 +16,8 @@ spec:
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 }}
Expand Down
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-angular.fullname" . }}
Expand All @@ -8,5 +8,7 @@ metadata:
{{ include "app-angular.labels.common" $ | indent 4 }}
spec:
appId: {{ .Values.operator.permission.spec.appId | default (include "app-angular.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 }}
7 changes: 6 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,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 All @@ -142,8 +146,9 @@ operator:
exposedModule: change-me

iconName:

note: change-me
remoteName:
tagName:

# list of strings
classifications: []
Expand Down

0 comments on commit 66a51a5

Please sign in to comment.