From 8b747a06b4850b366d6d5370cef6049872957b31 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 30 Jan 2024 15:41:58 +0000 Subject: [PATCH] Automated PR from --- ...01-configmap_01-mtaanalysis-resources.yaml | 173 ------------------ .../templates/01-sonataflow_mtaanalysis.yaml | 4 +- .../02-configmap_mtaanalysis-props.yaml | 1 + 3 files changed, 3 insertions(+), 175 deletions(-) diff --git a/charts/workflows/charts/mta/templates/01-configmap_01-mtaanalysis-resources.yaml b/charts/workflows/charts/mta/templates/01-configmap_01-mtaanalysis-resources.yaml index c1c909d0..d814695f 100755 --- a/charts/workflows/charts/mta/templates/01-configmap_01-mtaanalysis-resources.yaml +++ b/charts/workflows/charts/mta/templates/01-configmap_01-mtaanalysis-resources.yaml @@ -701,179 +701,6 @@ data: \"integer\"\n },\n \"unknown\": {\n \"type\": \"integer\"\n \ },\n \"yellow\": {\n \"type\": \"integer\"\n }\n \ }\n }\n }\n },\n \"x-original-swagger-version\": \"2.0\"\n}\n" - notifications.yaml: | - openapi: 3.0.3 - info: - title: Backstage Notifications Plugin - OpenAPI Specs - description: |- - Backstage Notifications Plugin - OpenAPI Specs - version: 1.0.0 - tags: - - name: notifications - description: Backstage notifications plugin - paths: - /notifications: - post: - tags: - - notifications - summary: Create notification - description: Create notification - operationId: createNotification - requestBody: - description: Create a new notification - content: - application/json: - schema: - $ref: '#/components/schemas/Notification' - responses: - '200': - description: Successful operation - content: - application/json: - schema: - type: object - properties: - messageId: - type: string - example: bc9f19de-8b7b-49a8-9262-c5036a1ed35e - get: - tags: - - notifications - summary: Gets notifications - description: Gets notifications - operationId: getNotifications - parameters: - - name: user - in: query - description: User for whom notifications will be fetched - required: true - schema: - type: string - - name: pageSize - in: query - description: Page size of the result - required: true - schema: - type: integer - - name: pageNumber - in: query - description: Page number of the result - required: true - schema: - type: integer - - name: read - in: query - description: Notifications read or not - required: true - schema: - type: boolean - responses: - '200': - description: Successful operation - content: - application/json: - schema: - $ref: '#/components/schemas/Notifications' - '500': - description: Error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' - components: - schemas: - Notifications: - type: array - items: - $ref: '#/components/schemas/Notification' - Action: - properties: - id: - type: string - example: aaf2e18f-fa55-4dd4-8d71-58878b4398ad - url: - type: string - example: http://foo.bar - title: - type: string - example: my-title - Notification: - properties: - id: - type: string - example: 19d76846-4bce-4786-bdc0-e44c30756dec - created: - type: string - format: date-time - example: "2023-11-21T15:33:15.800Z" - isSystem: - type: boolean - example: false - readByUser: - type: boolean - example: false - origin: - type: string - example: my-origin - title: - type: string - example: My message title - message: - type: string - format: nullable - example: I have nothing to say - topic: - type: string - format: nullable - targetUsers: # Used in Post Notifications - type: array - format: nullable - items: - type: string - example: jdoe - targetGroups: # Used in Post Notifications - type: array - format: nullable - items: - type: string - example: jdoe - actions: - type: array - format: nullable - items: - $ref: '#/components/schemas/Action' - ErrorResponse: - type: object - properties: - error: - type: object - properties: - name: - type: string - example: Error - message: - type: string - example: pageSize and pageNumber must both be either 0 or greater than 0 - stack: - type: string - example: >- - Error: "pageSize and pageNumber must both be either 0 or greater than 0" - request: - type: object - properties: - method: - type: string - example: GET - url: - type: string - example: /notifications?user=jdoe&read=false&pageNumber=-1&pageSize=1 - response: - type: object - properties: - statusCode: - type: integer - format: int32 - example: 500 kind: ConfigMap metadata: creationTimestamp: null diff --git a/charts/workflows/charts/mta/templates/01-sonataflow_mtaanalysis.yaml b/charts/workflows/charts/mta/templates/01-sonataflow_mtaanalysis.yaml index fd069e6c..1e6b66b5 100755 --- a/charts/workflows/charts/mta/templates/01-sonataflow_mtaanalysis.yaml +++ b/charts/workflows/charts/mta/templates/01-sonataflow_mtaanalysis.yaml @@ -38,7 +38,7 @@ spec: operation: specs/mta.json#getTaskgroup type: rest - name: createNotification - operation: specs/notifications.yaml#createNotification + operation: notifications#createNotification type: rest start: stateName: GetApplication @@ -225,7 +225,7 @@ spec: podTemplate: container: resources: {} - image: quay.io/orchestrator/serverless-workflow-mta:ff5932bd129ca62057596d28584fa43c7212b687 + image: quay.io/orchestrator/serverless-workflow-mta:0c7c9b0f4bc711dc1474a313ef50ca29506d71ce resources: configMaps: - configMap: diff --git a/charts/workflows/charts/mta/templates/02-configmap_mtaanalysis-props.yaml b/charts/workflows/charts/mta/templates/02-configmap_mtaanalysis-props.yaml index ccfd3dc2..44fa850f 100755 --- a/charts/workflows/charts/mta/templates/02-configmap_mtaanalysis-props.yaml +++ b/charts/workflows/charts/mta/templates/02-configmap_mtaanalysis-props.yaml @@ -6,6 +6,7 @@ data: mta.protocol = http mta_url = ${mta.protocol}://${mta.endpoint} quarkus.rest-client.mta_json.url = ${mta.protocol}://${mta.endpoint}:${mta.port}/hub + quarkus.rest-client.notifications.url=${BACKSTAGE_NOTIFICATIONS_URL:http://orchestrator-backstage.orchestrator/api/notifications/} #quarkus.rest-client.mta_json.auth.basicAuth.username = username #quarkus.rest-client.mta_json.auth.basicAuth.password = password