himadriganguly / k8s-jsonpath

Sample jsonpath code for Kubernetes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

K8s JsonPath

This repo contains sample jsonpath code related to Kubernetes.

JSONPath Syntax

JSONPath Description
$ The root object/element
@ The current object/element
. or [] Child member operator
.. Recursive descendant operator; JSONPath borrows this syntax from E4X
* Wildcard matching all objects/elements regardless their names
[] Subscript operator
[,] Union operator for alternate names or array indices as a set
[start:end:step] Array slice operator borrowed from ES4 / Python
?() Applies a filter (script) expression via static evaluation
() Script expression via static evaluation

Index

  1. Nodes
  2. Pods

About Us

k8s-jsonpath is maintained by:

himadriganguly
Himadri Ganguly

:octocat: 🐦

Contributing

Please see our CONTRIBUTING.md.

LICENSE

k8s-jsonpath is GNU GPL3 licensed. See the LICENSE file for details.

About

Sample jsonpath code for Kubernetes.

License:GNU General Public License v3.0