Skip to content

himadriganguly/k8s-jsonpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.