Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mta-v7.x: Automatic manifests generation #691

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/mta-v7.x/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.34
version: 0.2.35

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
54 changes: 45 additions & 9 deletions charts/mta-v7.x/templates/04-sonataflow_mta-analysis-v7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,18 @@ spec:
- condition: (.taskgroup.state == "Ready" and .taskgroup.tasks[0].state == "Failed")
name: taskFailed
transition:
nextState: NotifyFailureBackstage
nextState: TaskFailedError
defaultCondition:
transition:
nextState: GetApplicationAnalysis
name: checkReportDone
type: switch
- data:
exitMessage: '"The 1st task of the taskGroup " + .taskgroup.id + " is in failed state"'
name: TaskFailedError
transition:
nextState: NotifyFailureBackstage
type: inject
- actionMode: sequential
actions:
- actionDataFilter:
Expand Down Expand Up @@ -301,9 +307,15 @@ spec:
nextState: GetTracker
defaultCondition:
transition:
nextState: NotifyFailureBackstage
nextState: TrackersDoesNotExistError
name: TrackersExist
type: switch
- data:
exitMessage: '"There are no trackers configured in MTA, cannot export to the issue manager"'
name: TrackersDoesNotExistError
transition:
nextState: NotifyFailureBackstage
type: inject
- actionMode: sequential
actions:
- actionDataFilter:
Expand All @@ -325,9 +337,15 @@ spec:
nextState: GetTrackerProjects
defaultCondition:
transition:
nextState: NotifyFailureBackstage
nextState: TrackerDoesNotExistError
name: TrackerExists
type: switch
- data:
exitMessage: '"The tracker with the id " + .trackers[0].id + " does not exist, cannot export to the issue manager"'
name: TrackerDoesNotExistError
transition:
nextState: NotifyFailureBackstage
type: inject
- actionMode: sequential
actions:
- actionDataFilter:
Expand All @@ -349,9 +367,15 @@ spec:
nextState: GetTrackerProject
defaultCondition:
transition:
nextState: NotifyFailureBackstage
nextState: TrackerProjectsDoesNotExistError
name: TrackerProjectsExist
type: switch
- data:
exitMessage: '"There are no trackerProjects associated with the tracker with the id " + .tracker.id + ", cannot export to the issue manager"'
name: TrackerProjectsDoesNotExistError
transition:
nextState: NotifyFailureBackstage
type: inject
- actionMode: sequential
actions:
- actionDataFilter:
Expand All @@ -374,9 +398,15 @@ spec:
nextState: GetTrackerProjectIssueTypes
defaultCondition:
transition:
nextState: NotifyFailureBackstage
nextState: TrackerProjectDoesNotExistError
name: TrackerProjectExist
type: switch
- data:
exitMessage: '"The trackerProject with the id " + .trackerProjects[0].id + " of the tracker with the id " + .tracker.id + " does not exist, cannot export to the issue manager"'
name: TrackerProjectDoesNotExistError
transition:
nextState: NotifyFailureBackstage
type: inject
- actionMode: sequential
actions:
- actionDataFilter:
Expand All @@ -386,7 +416,7 @@ spec:
functionRef:
arguments:
id: .tracker.id
id2: .trackerProjects[0].id
id2: .trackerProject.id
invoke: sync
refName: getTrackerProjectIssueTypes
name: GetTrackerProjectIssueTypes
Expand All @@ -399,9 +429,15 @@ spec:
nextState: CreateMigrationWave
defaultCondition:
transition:
nextState: NotifyFailureBackstage
nextState: TrackerProjectIssueTypesDoesNotExistError
name: TrackerProjectIssueTypesExist
type: switch
- data:
exitMessage: '"There are no trackerProjectIssueTypes in the trackerProject with the id " + .trackerProject.id + " of the tracker with the id "+ .tracker.id +" does not exist, cannot export to the issue manager"'
name: TrackerProjectIssueTypesDoesNotExistError
transition:
nextState: NotifyFailureBackstage
type: inject
- actionMode: sequential
actions:
- actionDataFilter:
Expand Down Expand Up @@ -529,7 +565,7 @@ spec:
functionRef:
arguments:
payload:
description: '"MTA analysis for " + .application.repository.url + " failed. Check logs of task pod: " + .taskgroup.tasks[0].pod'
description: '"MTA analysis for " + .application.repository.url + " failed: " + .exitMessage + ". Check logs of task pod: " + .taskgroup.tasks[0].pod'
severity: critical
title: MTA analysis failed
topic: MTA Analysis Workflow
Expand All @@ -548,7 +584,7 @@ spec:
podTemplate:
container:
resources: {}
image: quay.io/orchestrator/serverless-workflow-mta-v7.x:754f5474331e629908ba1c87c2d6bedaf179bfcb
image: quay.io/orchestrator/serverless-workflow-mta-v7.x:1355025e2d45aa081e39c0665d29dd074ac320e9
envFrom:
- secretRef:
name: mta-analysis-v7-creds
Expand Down