Skip to content

Commit

Permalink
WIP M2K - send request with dump cli logs to trye
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache committed Jul 5, 2024
1 parent 9137d2f commit 6522c07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions move2kube/m2k.sw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ states:
workspace-id: ".workspaceId"
project-id: ".projectId"
remote-source: "\"git+\" + (.repositoryURL|sub(\"http(s)://?\";\"ssh://\")) + \"@\" + .sourceBranch"
dump-cli-logs: true
transition: InitGetPlanningRetry
- name: InitGetPlanningRetry
type: inject
Expand Down Expand Up @@ -94,6 +95,7 @@ states:
workspace-id: ".workspaceId"
project-id: ".projectId"
plan: .plan
dump-cli-logs: true
actionDataFilter:
results: .id
toStateData: .transformId
Expand Down
14 changes: 14 additions & 0 deletions move2kube/specs/move2kube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,13 @@ paths:
example: git+https://github.com/konveyor/move2kube
schema:
"$ref": "#/components/schemas/RemoteSource"
- name: dump-cli-logs
in: query
description: Boolean to dump CLI logs to stdout.
required: false
example: 'true'
schema:
type: boolean
responses:
'202':
description: Accepted.
Expand Down Expand Up @@ -939,6 +946,13 @@ paths:
example: 'true'
schema:
type: boolean
- name: dump-cli-logs
in: query
description: Boolean to dump CLI logs to stdout.
required: false
example: 'true'
schema:
type: boolean
requestBody:
description: 'A plan to use for the transformation. (Not required).
Expand Down

0 comments on commit 6522c07

Please sign in to comment.