mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Add curl commands for generator/transformer exploration
This commit is contained in:
29
api/internal/crawl/search_cmds/generator.md
Normal file
29
api/internal/crawl/search_cmds/generator.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
Find all the generator files whose `kinds` field includes `ChartRenderer`, and
|
||||||
|
only output certain fields of each document:
|
||||||
|
```
|
||||||
|
curl -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'
|
||||||
|
```
|
||||||
29
api/internal/crawl/search_cmds/transformer.md
Normal file
29
api/internal/crawl/search_cmds/transformer.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
Find all the trasnformer files whose `kinds` field includes `HelmValues`, and
|
||||||
|
only output certain fields of each document:
|
||||||
|
```
|
||||||
|
curl -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": "transformer" }}
|
||||||
|
],
|
||||||
|
"must_not": {
|
||||||
|
"regexp": { "filePath": "(.*/)?kustomization((.yaml)?|(.yml)?)(/)*" }
|
||||||
|
},
|
||||||
|
"must": {
|
||||||
|
"match" : {
|
||||||
|
"kinds" : {
|
||||||
|
"query" : "HelmValues"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user