Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 712 Bytes

kind_filters.md

File metadata and controls

28 lines (18 loc) · 712 Bytes

Kind Filters

Its useful to query YAML files to modify (e.g. jx-gitops label) via the resource kind.

You can filter by the kind property without the apiVersion property like this:

jx-gitops label --kind Deployment mylabel=somevalue 

If you want to filter by an apiVersion too you can add it as a prefix using / as a separator:

jx-gitops label --kind app/v1/Deployment mylabel=somevalue 

You can use a prefix of the apiVersion too if you want:

jx-gitops label --kind app/Deployment mylabel=somevalue 

You can omit the kind to match all resources of an apiVersion (or apiVersion prefix)

jx-gitops label --kind app/v1/ mylabel=somevalue