Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catalog - Support inline JQ #1398

Open
moshloop opened this issue Sep 13, 2024 · 0 comments
Open

catalog - Support inline JQ #1398

moshloop opened this issue Sep 13, 2024 · 0 comments
Milestone

Comments

@moshloop
Copy link
Member

ie.. instead of

{{ (index (catalog_traverse .params.kustomization.id  "Kubernetes::GitRepository") 0).Config | json | jq ".spec.url"  }}
{{ catalog .params.kustomization.id  "Kubernetes::GitRepository/$.spec.url" }}

where catalog is a function that takes:

  • catalog id / Config Item / JSON of config item / resource selector query
  • a traversal path that supports
    • Kubernetes::GitRepository or -->Kubernetes::GitRepository (incoming)
    • <--Kubernetes::GitRepository (outgoing)
    • <-->Kubernetes::GitRepository (both)
    • $. JQ path

And returns null or the config item or the string

@moshloop moshloop added this to the v1.1.0 milestone Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant