Ykre is a small cli program written in rust wich purpose is to extract from a list of yaml documents
Go to file
2020-10-09 22:14:29 +02:00
dist init 2020-10-08 18:40:35 +02:00
src init 2020-10-08 18:40:35 +02:00
.gitignore init 2020-10-08 18:40:35 +02:00
Cargo.toml init 2020-10-08 18:40:35 +02:00
install.sh add install 2020-10-09 22:14:29 +02:00
README.md init 2020-10-08 18:40:35 +02:00

Ykre

Ykre is a small cli program written in rust wich purpose is to extract from a list of yaml documents, documents matching a specified condition. Ykre goal is to find specific Kubernetes Resource from the kustomize output. Ykre stands for Yaml Kubernetes Resources Ectractor.

usage

ykre SEARCH [DEF]

examples

display content of the kubernetes resource 'myResourceName'

cat kubresources.yaml | ykre 'myResourceName'

write content of the kubernetes resource 'pv-dump' into a file

kustomize build ./config/volumes/local | ykre 'pv-dump' > ./tmp.yaml

retriew kubernetes pv resources matching 2Gi disk capacity

kustomize build ./config/volumes/dev | ykre 2Gi spec.capacity.storage

License

MIT