Skip to content

jpreese/kustomize-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kustomize-graph

Go Report Card

kustomize-graph is a small application that will generate a dependency graph of your kustomize structure.

Install

Builds are available on the releases page.

Usage

kustomize-graph outputs a graph in DOT. To visualize a DOT graph, graphviz is recommended.

After installing, a graph can be generated by piping the output of kustomize-graph into DOT.

kustomize-graph | dot -Tsvg > graph.svg

NOTE: You should run kustomize-graph in the same working directory as you would run kustomize.

Examples

Simple

Given the following file structure

~/app
├── kustomization.yaml
└── foo
    ├── kustomization.yaml
    └── foo-namespace.yaml

Would result in the following dependency graph

simple

Multibases

Another example using the multibases example from the kustomize repository

.
├── base
│   ├── kustomization.yaml
│   └── pod.yaml
├── dev
│   └── kustomization.yaml
├── kustomization.yaml
├── production
│   └── kustomization.yaml
└── staging
    └── kustomization.yaml

multibases

About

A tool for visualizing a kustomize dependency graph

Resources

License

Stars

Watchers

Forks

Packages

No packages published