mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
23 lines
505 B
Go
23 lines
505 B
Go
|
package jp
|
||
|
|
||
|
var websiteUrl = `https://kyverno.io/docs/kyverno-cli/#jp`
|
||
|
|
||
|
var description = []string{
|
||
|
`Provides a command-line interface to JMESPath, enhanced with Kyverno specific custom functions.`,
|
||
|
}
|
||
|
|
||
|
var examples = [][]string{
|
||
|
{
|
||
|
"# List functions",
|
||
|
"kyverno jp function",
|
||
|
},
|
||
|
{
|
||
|
"# Evaluate query",
|
||
|
"kyverno jp query -i object.yaml 'request.object.metadata.name | truncate(@, `9`)'",
|
||
|
},
|
||
|
{
|
||
|
"# Parse expression",
|
||
|
"kyverno jp parse 'request.object.metadata.name | truncate(@, `9`)'",
|
||
|
},
|
||
|
}
|