diff --git a/charts/workflows/charts/move2kube/templates/01-configmap_01-m2k-resources.yaml b/charts/workflows/charts/move2kube/templates/01-configmap_01-m2k-resources.yaml
index efcf7ee3..50ddc62e 100644
--- a/charts/workflows/charts/move2kube/templates/01-configmap_01-m2k-resources.yaml
+++ b/charts/workflows/charts/move2kube/templates/01-configmap_01-m2k-resources.yaml
@@ -1839,13 +1839,6 @@ data:
summary: Create notification
description: Create notification
operationId: createNotification
- parameters:
- - name: notifications-secret
- in: header
- description: Notification secret
- required: true
- schema:
- type: string
requestBody:
description: Create a new notification
content:
@@ -2060,11 +2053,29 @@ data:
type: string
message:
type: string
+ actions:
+ type: array
+ items:
+ type: object
+ properties:
+ title:
+ type: string
+ url:
+ type: string
+ required: [title, url]
topic:
type: string
+ targetUsers:
+ type: array
+ items:
+ type: string
+ targetGroups:
+ type: array
+ items:
+ type: string
required: [origin, title]
kind: ConfigMap
metadata:
creationTimestamp: null
- name: 01-{{ .Values.workflow.name }}-resources
- namespace: {{ .Values.namespace }}
\ No newline at end of file
+ name: 01-m2k-resources
+ namespace: default
diff --git a/charts/workflows/charts/move2kube/templates/01-sonataflow_m2k.yaml b/charts/workflows/charts/move2kube/templates/01-sonataflow_m2k.yaml
index 04504414..a886e066 100644
--- a/charts/workflows/charts/move2kube/templates/01-sonataflow_m2k.yaml
+++ b/charts/workflows/charts/move2kube/templates/01-sonataflow_m2k.yaml
@@ -2,15 +2,15 @@ apiVersion: sonataflow.org/v1alpha08
kind: SonataFlow
metadata:
annotations:
- sonataflow.org/description: Workflow to execute {{ .Values.workflow.name }}
+ sonataflow.org/description: Workflow to execute Move2Kube
sonataflow.org/expressionLang: jq
sonataflow.org/version: "1.0"
creationTimestamp: null
labels:
- app: {{ .Values.workflow.name }}
- sonataflow.org/workflow-app: {{ .Values.workflow.name }}
- name: {{ .Values.workflow.name }}
- namespace: {{ .Values.namespace }}
+ app: m2k
+ sonataflow.org/workflow-app: m2k
+ name: m2k
+ namespace: default
spec:
flow:
dataInputSchema:
@@ -123,10 +123,13 @@ spec:
actions:
- actionDataFilter:
useResults: true
- condition: ((has("notifications_disabled") and .notifications_disabled != null and .notifications_disabled == true)|not)
+ condition: ((has("notificationsDisabled") and .notificationsDisabled != null and .notificationsDisabled == true)|not)
functionRef:
arguments:
- message: '"Please go to your Move2Kube instance and answers to questions in order to continue the Move2Kube workflow"'
+ actions:
+ - title: Move2Kube waiting Q&A
+ url: '$SECRET.move2kube_url + "/workspaces/"+ .workspaceId + "/projects/" + .projectId + "/outputs/"+ .transformId '
+ message: '"Please go to your move2kube instance and answer the questions in order to continue the Move2Kube workflow"'
origin: Move2Kube Workflow
title: ' "Transformation " + .transformationId + " waiting for Q&A" '
topic: Move2Kube Workflow
@@ -149,7 +152,7 @@ spec:
HEADER_Ce-Type: save-transformation
HEADER_Content-Type: application/json
branch: .targetBranch
- gitRepo: (.repositoryURL|sub(\"http(s)?://\";\"ssh://\"))
+ gitRepo: (.repositoryURL|sub("http(s)?://";"ssh://"))
projectId: .projectId
token: .token
transformId: .transformId
@@ -201,10 +204,10 @@ spec:
- actions:
- actionDataFilter:
useResults: true
- condition: ((has("notifications_disabled") and .notifications_disabled != null and .notifications_disabled == true)|not)
+ condition: ((has("notificationsDisabled") and .notificationsDisabled != null and .notificationsDisabled == true)|not)
functionRef:
arguments:
- message: '"Move2Kube workflow " + $WORKFLOW.instanceId + " on workspace " + .workspaceId + " and project " + .projectId + " failed with exit message: "+ .exitMessage + "
Error: " + .error'
+ message: '"Move2Kube workflow " + $WORKFLOW.instanceId + " on workspace " + .workspaceId + " and project " + .projectId + " failed with exit message: "+ .exitMessage + "\n\nError: " + .error'
origin: Move2Kube Workflow
title: '"Move2Kube workflow " + $WORKFLOW.instanceId + " failed"'
topic: Move2Kube Workflow
@@ -232,11 +235,11 @@ spec:
- actions:
- actionDataFilter:
useResults: true
- condition: ((has("notifications_disabled") and .notifications_disabled != null and .notifications_disabled == true)|not)
+ condition: ((has("notificationsDisabled") and .notificationsDisabled != null and .notificationsDisabled == true)|not)
functionRef:
arguments:
- message: '"Move2Kube workflow " + $WORKFLOW.instanceId + " on workspace " + .workspaceId + " and project " + .projectId + " was successful"'
- origin: Move2Kube Worflow
+ message: '"Move2Kube workflow " + $WORKFLOW.instanceId + " on workspace " + .workspaceId + " and project " + .projectId + " was successful; the output is available in the branch " + .targetBranch + " of your git repository "+ .repositoryURL"'
+ origin: Move2Kube Workflow
title: '"Move2Kube workflow " + $WORKFLOW.instanceId + " success"'
topic: Move2Kube Workflow
invoke: sync
@@ -252,9 +255,12 @@ spec:
podTemplate:
container:
resources: {}
- image: {{ .Values.workflow.image }}
+ image: quay.io/orchestrator/serverless-workflow-move2kube:4fae4bd85a48f4091f5c67a83fbcc94dcd29f1f2
resources:
configMaps:
- configMap:
- name: 01-{{ .Values.workflow.name }}-resources
+ name: 01-m2k-resources
workflowPath: specs
+status:
+ address: {}
+ lastTimeRecoverAttempt: null
diff --git a/charts/workflows/charts/move2kube/templates/02-configmap_m2k-props.yaml b/charts/workflows/charts/move2kube/templates/02-configmap_m2k-props.yaml
index 2773d882..0dc98457 100644
--- a/charts/workflows/charts/move2kube/templates/02-configmap_m2k-props.yaml
+++ b/charts/workflows/charts/move2kube/templates/02-configmap_m2k-props.yaml
@@ -7,14 +7,17 @@ data:
mp.messaging.incoming.kogito_incoming_stream.path=/
mp.messaging.incoming.kogito_incoming_stream.method=POST
-
- move2kube_url={{ .Values.workflow.move2kubeURL }}
- quarkus.rest-client.move2kube_yaml.url={{ .Values.workflow.move2kubeURL }}
- quarkus.rest-client.notifications_yaml.url={{ .Values.workflow.backstageNotificationURL }}
+ # This property is used when sending the notification while waiting for Q&A
+ move2kube_url=${MOVE2KUBE_URL:http://move2kube-svc.default.svc.cluster.local:8080}
+ # This property is used to send requests to the move2kube instance
+ quarkus.rest-client.move2kube_yaml.url=${MOVE2KUBE_URL:http://move2kube-svc.default.svc.cluster.local:8080}
+ # This property is used to send requests to the backstage notification plugin
+ quarkus.rest-client.notifications_yaml.url=${BACKSTAGE_NOTIFICATIONS_URL:http://orchestrator-backstage.orchestrator/api/notifications/}
kind: ConfigMap
metadata:
+ creationTimestamp: null
labels:
- app: {{ .Values.workflow.name }}
- sonataflow.org/workflow-app: {{ .Values.workflow.name }}
- name: {{ .Values.workflow.name }}-props
- namespace: {{ .Values.namespace }}
+ app: m2k
+ sonataflow.org/workflow-app: m2k
+ name: m2k-props
+ namespace: default