Skip to content

Commit

Permalink
Use notifications specs from github repo instead of duplicated file i…
Browse files Browse the repository at this point in the history
…n each workflow specs
  • Loading branch information
gabriel-farache committed Jan 30, 2024
1 parent 4fae4bd commit 65c6725
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 429 deletions.
2 changes: 1 addition & 1 deletion move2kube/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ move2kube_url=${MOVE2KUBE_URL:http://move2kube-svc.default.svc.cluster.local:808
# 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/}
quarkus.rest-client.notifications.url=${BACKSTAGE_NOTIFICATIONS_URL:http://orchestrator-backstage.orchestrator/api/notifications/}
6 changes: 5 additions & 1 deletion move2kube/m2k.sw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ name: Move2Kube workflow
description: Workflow to execute Move2Kube
dataInputSchema: schemas/input.json
start: StartPlanning
extensions:
- extensionid: workflow-uri-definitions
definitions:
notifications: "https://raw.githubusercontent.com/janus-idp/backstage-plugins/%40janus-idp/plugin-notifications-backend%401.0.3/plugins/notifications-backend/src/openapi.yaml"
events:
- name: errorEvent
source: ''
Expand All @@ -29,7 +33,7 @@ functions:
type: custom
operation: rest:post:http://broker-ingress.knative-eventing.svc.cluster.local/sonataflow-infra/default
- name: createNotification
operation: 'specs/notifications.yaml#createNotification'
operation: notifications#createNotification
states:
- name: StartPlanning
type: operation
Expand Down
254 changes: 0 additions & 254 deletions move2kube/specs/notifications.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion mta/mta.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ start: GetApplication
dataInputSchema:
schema: specs/mta-input.json
failOnValidationErrors: false
extensions:
- extensionid: workflow-uri-definitions
definitions:
notifications: "https://raw.githubusercontent.com/janus-idp/backstage-plugins/%40janus-idp/plugin-notifications-backend%401.0.3/plugins/notifications-backend/src/openapi.yaml"
functions:
- name: filterApplication
type: expression
Expand All @@ -26,7 +30,7 @@ functions:
- name: getTaskgroup
operation: specs/mta.json#getTaskgroup
- name: createNotification
operation: 'specs/notifications.yaml#createNotification'
operation: notifications#createNotification
states:
- name: GetApplication
type: operation
Expand Down
Loading

0 comments on commit 65c6725

Please sign in to comment.