Skip to content

Add cf mta-graph command for local mtad.yaml dependency graph - #276

Draft
vkalapov wants to merge 2 commits into
masterfrom
feature/LMCROSSITXSADEPLOY-3717-dependency-graph
Draft

vkalapov wants to merge 2 commits into
masterfrom
feature/LMCROSSITXSADEPLOY-3717-dependency-graph

Conversation

@vkalapov

Copy link
Copy Markdown
Contributor

Description:

New cf mta-graph <path/to/mtad.yaml> command that reads a descriptor file,
calls the deploy service's descriptor-based graph endpoint, and prints the
result as DOT notation to stdout. The output can be piped directly to
dot -Tpng | open -f -a Preview for a visual graph.

What changes:

  • commands/mta_graph_command.go implements the command: reads the descriptor,
    POSTs to /api/v1/spaces/{spaceGuid}/mtas/graph, prints the DOT response.
  • Edges are labelled with the dependency name; apps/services use distinct node
    shapes. rankdir=LR for left-to-right layout.
  • Command registered in multiapps_plugin.go.

Issue:

LMCROSSITXSADEPLOY-3717

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant