mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 00:52:55 +00:00
Use an env variable for index name and fix the call to NewKustomizeIndex in backend
This commit is contained in:
@@ -44,7 +44,7 @@ type kustomizeSearch struct {
|
|||||||
// /register: not implemented, but meant as an endpoint for adding new
|
// /register: not implemented, but meant as an endpoint for adding new
|
||||||
// kustomization files to the corpus.
|
// kustomization files to the corpus.
|
||||||
func NewKustomizeSearch(ctx context.Context) (*kustomizeSearch, error) {
|
func NewKustomizeSearch(ctx context.Context) (*kustomizeSearch, error) {
|
||||||
idx, err := index.NewKustomizeIndex(ctx)
|
idx, err := index.NewKustomizeIndex(ctx, "kustomize")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Find out the largest value of the `creationTime` field:
|
Find out the largest value of the `creationTime` field:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"aggs" : {
|
"aggs" : {
|
||||||
"max_creationTime" : { "max" : { "field" : "creationTime" } }
|
"max_creationTime" : { "max" : { "field" : "creationTime" } }
|
||||||
@@ -11,7 +11,7 @@ curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Cont
|
|||||||
|
|
||||||
Find out the smallest value of the `creationTime` field:
|
Find out the smallest value of the `creationTime` field:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"aggs" : {
|
"aggs" : {
|
||||||
"min_creationTime" : { "min" : { "field" : "creationTime" } }
|
"min_creationTime" : { "min" : { "field" : "creationTime" } }
|
||||||
@@ -22,7 +22,7 @@ curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Cont
|
|||||||
|
|
||||||
Find out the smallest value of the `creationTime` field of all the kustomization files:
|
Find out the smallest value of the `creationTime` field of all the kustomization files:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -40,7 +40,7 @@ curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Cont
|
|||||||
|
|
||||||
Find out the smallest value of the `creationTime` field of all kustomize resource files:
|
Find out the smallest value of the `creationTime` field of all kustomize resource files:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -58,7 +58,7 @@ curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Cont
|
|||||||
|
|
||||||
Query all the documents whose `creationTime` <= `2016-07-29T17:38:26.000Z`:
|
Query all the documents whose `creationTime` <= `2016-07-29T17:38:26.000Z`:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"range": {
|
"range": {
|
||||||
@@ -73,7 +73,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Query all the documents whose `creationTime` falls within the specific range:
|
Query all the documents whose `creationTime` falls within the specific range:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"range": {
|
"range": {
|
||||||
@@ -89,7 +89,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Aggregate how many new kustomization files were added into Github each month:
|
Aggregate how many new kustomization files were added into Github each month:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -112,7 +112,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Conte
|
|||||||
|
|
||||||
Aggregate how many new kustomize resource files were added into Github each month:
|
Aggregate how many new kustomize resource files were added into Github each month:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -135,7 +135,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Conte
|
|||||||
|
|
||||||
Aggregate how many new kustomization files were added into Github each year:
|
Aggregate how many new kustomization files were added into Github each year:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -158,7 +158,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Conte
|
|||||||
|
|
||||||
Aggregate how many new kustomize resource files were added into Github each year:
|
Aggregate how many new kustomize resource files were added into Github each year:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Count distinct values of the `defaultBranch` field:
|
Count distinct values of the `defaultBranch` field:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"aggs" : {
|
"aggs" : {
|
||||||
"defaultBranch_count" : {
|
"defaultBranch_count" : {
|
||||||
@@ -17,7 +17,7 @@ curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Cont
|
|||||||
List all the github branches where kustomization files and kustomize resource files live,
|
List all the github branches where kustomization files and kustomize resource files live,
|
||||||
and how many kustomization files and kustomize resource files live in each branch:
|
and how many kustomization files and kustomize resource files live in each branch:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"aggs" : {
|
"aggs" : {
|
||||||
"defaultBranch" : {
|
"defaultBranch" : {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Count the documents whose `document` field is empty (The reason why the `document` field
|
Count the documents whose `document` field is empty (The reason why the `document` field
|
||||||
of a document is empty is because of empty documents):
|
of a document is empty is because of empty documents):
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"size": 10000,
|
"size": 10000,
|
||||||
"query": {
|
"query": {
|
||||||
@@ -19,7 +19,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Find all the documents having the `creationTime` field set:
|
Find all the documents having the `creationTime` field set:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"exists": {
|
"exists": {
|
||||||
@@ -32,7 +32,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Find all the documents whose `creationTime` field is not set:
|
Find all the documents whose `creationTime` field is not set:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"size": 10000,
|
"size": 10000,
|
||||||
"query": {
|
"query": {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Count the documents in the index whose `repositoryUrl` field starts with
|
Count the documents in the index whose `repositoryUrl` field starts with
|
||||||
`https://github.com/`:
|
`https://github.com/`:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -17,7 +17,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
Count the documents in the index whose `repositoryUrl` field does not start with
|
Count the documents in the index whose `repositoryUrl` field does not start with
|
||||||
`https://github.com/`:
|
`https://github.com/`:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -33,7 +33,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
Search all the documents matching the given `repositoryUrl` and `filePath`, and return
|
Search all the documents matching the given `repositoryUrl` and `filePath`, and return
|
||||||
a version for each search hit:
|
a version for each search hit:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"size": 10000,
|
"size": 10000,
|
||||||
"version": true,
|
"version": true,
|
||||||
@@ -52,7 +52,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
Search all the documents whose filePath ends with one of these following three filenames:
|
Search all the documents whose filePath ends with one of these following three filenames:
|
||||||
`kustomization.yaml`, `kustomization.yml`, `kustomization`:
|
`kustomization.yaml`, `kustomization.yml`, `kustomization`:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -68,7 +68,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
Search all the documents whose filePath does not end with any of these following
|
Search all the documents whose filePath does not end with any of these following
|
||||||
three filenames: `kustomization.yaml`, `kustomization.yml`, `kustomization`:
|
three filenames: `kustomization.yaml`, `kustomization.yml`, `kustomization`:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ curl "${ElasticSearchURL}:9200/_cat/indices?v"
|
|||||||
|
|
||||||
Get the mapping of the index:
|
Get the mapping of the index:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_mapping?pretty"
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_mapping?pretty"
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete the kustomize index from the ElasticSearch cluster (**Use this command with caution**):
|
Delete the kustomize index from the ElasticSearch cluster (**Use this command with caution**):
|
||||||
```
|
```
|
||||||
curl -X DELETE "${ElasticSearchURL}:9200/kustomize?pretty"
|
curl -X DELETE "${ElasticSearchURL}:9200/${INDEXNAME}?pretty"
|
||||||
```
|
```
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
Count distinct values of the `repositoryUrl` field:
|
Count distinct values of the `repositoryUrl` field:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"aggs" : {
|
"aggs" : {
|
||||||
"repositoryUrl_count" : {
|
"repositoryUrl_count" : {
|
||||||
@@ -16,7 +16,7 @@ curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Cont
|
|||||||
|
|
||||||
Count how many Github repositories include kustomization files:
|
Count how many Github repositories include kustomization files:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -39,7 +39,7 @@ curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Cont
|
|||||||
|
|
||||||
Count how many Github repositories include kustomize resource files:
|
Count how many Github repositories include kustomize resource files:
|
||||||
```
|
```
|
||||||
curl -X POST "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X POST "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -64,7 +64,7 @@ List all the github repositories including kustomization files and kustomize res
|
|||||||
and how many kustomization files and kustomize resource files each github repository includes
|
and how many kustomization files and kustomize resource files each github repository includes
|
||||||
(the github repository including the most kustomization files is listed first):
|
(the github repository including the most kustomization files is listed first):
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"aggs" : {
|
"aggs" : {
|
||||||
"repositoryUrl" : {
|
"repositoryUrl" : {
|
||||||
@@ -80,7 +80,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Conte
|
|||||||
|
|
||||||
List the top 20 Github repositories including the most amount of kustomization files:
|
List the top 20 Github repositories including the most amount of kustomization files:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -103,7 +103,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Conte
|
|||||||
|
|
||||||
List the top 20 Github repositories including the most amount of kustomize resource files:
|
List the top 20 Github repositories including the most amount of kustomize resource files:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?size=0&pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Search for all the kustomize resource files including a Deployment object:
|
Search for all the kustomize resource files including a Deployment object:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"match" : {
|
"match" : {
|
||||||
@@ -16,7 +16,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
Search for all the kustomize resource files including a Deployment object, but only
|
Search for all the kustomize resource files including a Deployment object, but only
|
||||||
including the `kinds` field in the result:
|
including the `kinds` field in the result:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"_source": {
|
"_source": {
|
||||||
"includes": ["kinds"]
|
"includes": ["kinds"]
|
||||||
@@ -35,7 +35,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
Search for all the kustomize resource files including both a Deployment object and
|
Search for all the kustomize resource files including both a Deployment object and
|
||||||
a Service object:
|
a Service object:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"match" : {
|
"match" : {
|
||||||
@@ -52,7 +52,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
Count the number of documents including Deployment and the number of documents
|
Count the number of documents including Deployment and the number of documents
|
||||||
including Service:
|
including Service:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"size": 0,
|
"size": 0,
|
||||||
"aggs" : {
|
"aggs" : {
|
||||||
@@ -71,7 +71,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Search for all the kustomization files involving CRDs:
|
Search for all the kustomization files involving CRDs:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"size": 10000,
|
"size": 10000,
|
||||||
"query": {
|
"query": {
|
||||||
@@ -87,7 +87,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Search for all the kustomization files defining configMapGenerator:
|
Search for all the kustomization files defining configMapGenerator:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"size": 10000,
|
"size": 10000,
|
||||||
"query": {
|
"query": {
|
||||||
@@ -103,7 +103,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Search for all the documents having a `kind` field:
|
Search for all the documents having a `kind` field:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -118,7 +118,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Search for all the kuostmization files having a `kind` field:
|
Search for all the kuostmization files having a `kind` field:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"bool": {
|
"bool": {
|
||||||
@@ -134,7 +134,7 @@ curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type
|
|||||||
|
|
||||||
Search for all the kustomization files defining the `generatorOptions:disableNameSuffixHash` feature:
|
Search for all the kustomization files defining the `generatorOptions:disableNameSuffixHash` feature:
|
||||||
```
|
```
|
||||||
curl -X GET "${ElasticSearchURL}:9200/kustomize/_search?pretty" -H 'Content-Type: application/json' -d'
|
curl -X GET "${ElasticSearchURL}:9200/${INDEXNAME}/_search?pretty" -H 'Content-Type: application/json' -d'
|
||||||
{
|
{
|
||||||
"query": {
|
"query": {
|
||||||
"match" : {
|
"match" : {
|
||||||
|
|||||||
Reference in New Issue
Block a user