YQ
- lightweight and portable command-line YAML, JSON and XML processor
Examples
kubectl get crds -o yaml \ | yq eval '.items[] | select(.metadata.name | contains("helmreleases.helm.toolkit.fluxcd.io"))'
kubectl get crds -o yaml \
| yq eval '.items[] | select(.metadata.name | contains("helmreleases.helm.toolkit.fluxcd.io"))'