Skip to content

benjamin-bergia/kree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kree (Kustomization Tree)

Kree let you list all the resources included by a specific kustomizaition file.

Limitations

  • Remote resources are currently ignored and will not appear in the ouput.

Example

> kree --help
Usage: kree [OPTIONS] <PATH>

Arguments:
  <PATH>
          Path to the kustomization file or directory

Options:
  -f, --format <FORMAT>
          Output format
          
          [default: text]

          Possible values:
          - text: One path per line
          - json: JSON

  -h, --help
          Print help information (use `-h` for a summary)
> kree ../kustomize/examples/multibases
/home/test/projects/kustomize/examples/multibases/base/kustomization.yaml
/home/test/projects/kustomize/examples/multibases/base/pod.yaml
/home/test/projects/kustomize/examples/multibases/dev/kustomization.yaml
/home/test/projects/kustomize/examples/multibases/kustomization.yaml
/home/test/projects/kustomize/examples/multibases/production/kustomization.yaml
/home/test/projects/kustomize/examples/multibases/staging/kustomization.yaml
> kree -f json ../kustomize/examples/multibases | jq
[
  "/home/test/projects/kustomize/examples/multibases/base/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/base/pod.yaml",
  "/home/test/projects/kustomize/examples/multibases/dev/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/production/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/staging/kustomization.yaml"
]
> kree -f json ../kustomize/examples/multibases ../kustomize/examples/wordpress | jq
[
  "/home/test/projects/kustomize/examples/multibases/base/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/base/pod.yaml",
  "/home/test/projects/kustomize/examples/multibases/dev/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/production/kustomization.yaml",
  "/home/test/projects/kustomize/examples/multibases/staging/kustomization.yaml",
  "/home/test/projects/kustomize/examples/wordpress/kustomization.yaml",
  "/home/test/projects/kustomize/examples/wordpress/mysql/deployment.yaml",
  "/home/test/projects/kustomize/examples/wordpress/mysql/kustomization.yaml",
  "/home/test/projects/kustomize/examples/wordpress/mysql/secret.yaml",
  "/home/test/projects/kustomize/examples/wordpress/mysql/service.yaml",
  "/home/test/projects/kustomize/examples/wordpress/wordpress/deployment.yaml",
  "/home/test/projects/kustomize/examples/wordpress/wordpress/kustomization.yaml",
  "/home/test/projects/kustomize/examples/wordpress/wordpress/service.yaml"
]

Note: the result is sorted and doesn't follow the arguments order.