Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1570,6 +1570,7 @@ The required index definitions for each release can be found at the following re
- `2.7` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.7/indexes>
- `2.8` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes>
- `2.9` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.9/indexes>
- `2.10` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.10/indexes>

The indexes specifications are stored in JSON files. The directory structure is:

Expand Down
1 change: 1 addition & 0 deletions README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,7 @@ The required index definitions for each release can be found at the following re
- `2.7` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.7/indexes>
- `2.8` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes>
- `2.9` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.9/indexes>
- `2.10` <https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.10/indexes>

The indexes specifications are stored in JSON files. The directory structure is:

Expand Down
73 changes: 73 additions & 0 deletions indexes/audit/audit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[
{
"key": {
"accountId": 1,
"timestamp": -1
},
"name": "accountId_1_timestamp_-1"
},
{
"key": {
"accountId": 1,
"eventType": 1,
"timestamp": -1
},
"name": "accountId_1_eventType_1_timestamp_-1"
},
{
"key": {
"accountId": 1,
"entityType": 1,
"timestamp": -1
},
"name": "accountId_1_entityType_1_timestamp_-1"
},
{
"key": {
"accountId": 1,
"entityName": 1,
"timestamp": -1
},
"name": "accountId_1_entityName_1_timestamp_-1"
},
{
"key": {
"accountId": 1,
"status": 1,
"timestamp": -1
},
"name": "accountId_1_status_1_timestamp_-1"
},
{
"key": {
"accountId": 1,
"userId": 1,
"timestamp": -1
},
"name": "accountId_1_userId_1_timestamp_-1"
},
{
"key": {
"_id": 1
},
"name": "_id_"
},
{
"key": {
"inactive": 1,
"updatedAt": 1
},
"name": "inactive_1_updatedAt_1",
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
}
]
130 changes: 130 additions & 0 deletions indexes/read-models/clusters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
[
{
"key": {
"__passiveReferencedBy.name": 1
}
},
{
"key": {
"__passiveReferencedBy.name": 1,
"__passiveReferencedBy.kind": 1,
"__passiveReferencedBy.namespace": 1,
"__passiveReferencedBy.group": 1,
"__passiveReferencedBy.version": 1
}
},
{
"key": {
"__passiveReferences.name": 1
}
},
{
"key": {
"__passiveReferences.name": 1,
"__passiveReferences.kind": 1,
"__passiveReferences.namespace": 1,
"__passiveReferences.group": 1,
"__passiveReferences.version": 1
}
},
{
"key": {
"__inferredReferencedBy.name": 1
}
},
{
"key": {
"__inferredReferencedBy.name": 1,
"__inferredReferencedBy.kind": 1,
"__inferredReferencedBy.namespace": 1,
"__inferredReferencedBy.group": 1,
"__inferredReferencedBy.version": 1
}
},
{
"key": {
"__inferredReferences.name": 1
}
},
{
"key": {
"__inferredReferences.name": 1,
"__inferredReferences.kind": 1,
"__inferredReferences.namespace": 1,
"__inferredReferences.group": 1,
"__inferredReferences.version": 1
}
},
{
"key": {
"updatedAt": 1
}
},
{
"key": {
"projects": 1
}
},
{
"key": {
"metadata.name": 1
}
},
{
"key": {
"metadata.labels": 1
}
},
{
"key": {
"self.name": 1
}
},
{
"key": {
"self.name": 1,
"self.kind": 1,
"self.namespace": 1,
"self.group": 1,
"self.version": 1
}
},
{
"key": {
"metadata.accountId": 1,
"metadata.runtime": 1,
"server": 1
},
"unique": true
},
{
"key": {
"metadata.accountId": 1,
"metadata.runtime": 1,
"metadata.cluster": 1,
"metadata.namespace": 1,
"metadata.group": 1,
"metadata.version": 1,
"metadata.kind": 1,
"metadata.name": 1
},
"unique": true
},
{
"key": {
"inactive": 1,
"updatedAt": 1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
}
]
18 changes: 18 additions & 0 deletions indexes/read-models/product-releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,23 @@
"createdAt": 1
},
"expireAfterSeconds": 23328000
},
{
"key": {
"accountId": 1,
"createdAt": -1,
"_id": -1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
}
]
74 changes: 74 additions & 0 deletions indexes/read-models/promotion-tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[
{
"key": {
"accountId": 1,
"_id": 1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
},
{
"key": {
"accountId": 1,
"metadata.promotionId": 1,
"metadata.environment": 1,
"createdAt": -1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
},
{
"key": {
"accountId": 1,
"runtimeName": 1,
"spec.phase": 1,
"createdAt": -1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
},
{
"key": {
"createdAt": 1
},
"expireAfterSeconds": 15552000,
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
}
]
71 changes: 71 additions & 0 deletions indexes/read-models/promotions.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,76 @@
"normalization": false,
"backwards": false
}
},
{
"key": {
"accountId": 1,
"productName": 1,
"triggerCommitInfo.commitSha": 1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
},
{
"key": {
"accountId": 1,
"productName": 1,
"createdAt": -1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
},
{
"key": {
"createdAt": 1
},
"expireAfterSeconds": 15552000,
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
},
{
"key": {
"accountId": 1,
"createdAt": -1,
"_id": -1
},
"collation": {
"locale": "en_US",
"caseLevel": false,
"caseFirst": "off",
"strength": 1,
"numericOrdering": false,
"alternate": "non-ignorable",
"maxVariable": "punct",
"normalization": false,
"backwards": false
}
}
]
Loading