mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-22 06:47:00 +00:00
29 lines
700 B
Markdown
29 lines
700 B
Markdown
Find all the generator files whose `kinds` field includes `ChartRenderer`, and
|
|
only output certain fields of each document:
|
|
```
|
|
curl -s -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
|
{
|
|
"size": 200,
|
|
"_source": {
|
|
"includes": ["kinds", "repositoryUrl", "defaultBranch", "filePath"]
|
|
},
|
|
"query": {
|
|
"bool": {
|
|
"filter": [
|
|
{ "regexp": { "fileType": "generator" }}
|
|
],
|
|
"must_not": {
|
|
"regexp": { "filePath": "(.*/)?kustomization((.yaml)?|(.yml)?)(/)*" }
|
|
},
|
|
"must": {
|
|
"match" : {
|
|
"kinds" : {
|
|
"query" : "ChartRenderer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
'
|
|
``` |