diff --git a/codefresh/README.md b/codefresh/README.md index 742e464ca..ae728b2df 100644 --- a/codefresh/README.md +++ b/codefresh/README.md @@ -24,7 +24,6 @@ Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/ - [Configuration with ALB (Application Load Balancer)](#configuration-with-alb-application-load-balancer) - [Configuration with Private Registry](#configuration-with-private-registry) - [Configuration with multi-role CF-API](#configuration-with-multi-role-cf-api) - - [Indexes in MongoDB](#indexes-in-mongodb) - [High Availability](#high-availability) - [Mounting private CA certs](#mounting-private-ca-certs) - [Installing on OpenShift](#installing-on-openshift) @@ -36,6 +35,7 @@ Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/ - [X-Frame-Options response header](#x-frame-options-response-header) - [Image digests in containers](#image-digests-in-containers) - [Configuring OIDC Provider](#configuring-oidc-provider) +- [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) - [Upgrading](#upgrading) - [To 2.0.0](#to-2-0-0) - [To 2.0.12](#to-2-0-12) @@ -80,8 +80,6 @@ See [Use OCI-based registries](https://helm.sh/docs/topics/registries/) **Important:** only helm 3.8.0+ is supported -**Important:** Read about [Indexes in MongoDB](#indexes-in-mongodb) before installation - Edit default `values.yaml` or create empty `cf-values.yaml` - Pass `sa.json` (as a single line) to `.Values.imageCredentials.password` @@ -94,7 +92,7 @@ imageCredentials: password: '{ "type": "service_account", "project_id": "codefresh-enterprise", "private_key_id": ... }' ``` -- Specify `.Values.global.appUrl`, `.Values.global.firebaseUrl` and `.Values.global.firebaseSecret` +- Specify `.Values.global.appUrl`, `.Values.global.firebaseUrl`, `.Values.global.firebaseSecret`, `.Values.global.env.MONGOOSE_AUTO_INDEX`, `.Values.global.env.MONGO_AUTOMATIC_INDEX_CREATION` ```yaml global: @@ -119,9 +117,9 @@ global: # name: my-secret # key: firebase-secret - # -- Enable auto-index creation in MongoDB + # -- Enable index creation in MongoDB # This is required for first-time installations! - # For upgrades, you should set it to `false`! + # Before usage in Production, you must set it to `false` or remove it! env: MONGOOSE_AUTO_INDEX: "true" MONGO_AUTOMATIC_INDEX_CREATION: "true" @@ -181,6 +179,17 @@ ingress-nginx: --timeout 15m ``` +### ⚠️ **MANDATORY** Post-Installation Action Items + +Once your Codefresh On-Prem instance is installed, configured, and confirmed to be ready for production use, the following variables must be set to `false` or removed: + +```yaml +global: + env: + MONGOOSE_AUTO_INDEX: "false" + MONGO_AUTOMATIC_INDEX_CREATION: "false" +``` + ## Chart Configuration See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands: @@ -785,64 +794,6 @@ cfapi-test-reporting: enabled: true ``` -⚠️ ⚠️ ⚠️ -### Indexes in MongoDB -⚠️ ⚠️ ⚠️ - -Indexes in MongoDB are essential for efficient query performance, especially as your data grows. Without proper indexes, MongoDB must perform full collection scans to find matching documents, which can significantly slow down operations and increase resource usage. For production environments, ensuring that all frequently queried fields are indexed is vital to maintain optimal performance and scalability. - -Auto-index creation in MongoDB is disabled by default in Codefresh On-Prem to prevent unexpected performance issues in production environments during upgrades. When enabled, MongoDB will automatically create indexes for fields used in queries, which can lead to high CPU and disk usage, increased I/O, and potential service disruptions—especially on large datasets. By requiring manual index management, administrators can plan index creation during maintenance windows, ensuring system stability and predictable performance before upgrading Codefresh On-Prem. - -It is critical to ensure that your MongoDB indexes are always aligned with the latest recommended state for your Codefresh On-Prem version. Outdated or missing indexes can lead to degraded performance, slow queries, and increased resource consumption. Always review release notes and update or create indexes as specified during upgrades or when new collections/fields are introduced. Regularly auditing and maintaining your indexes helps ensure optimal system reliability and scalability. - -The indexes list is located at the [codefresh-io/codefresh-onprem-helm](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes) repository. -The indexes are stored in JSON files with keys and options specified. - -The directory structure is: - -```console -codefresh-onprem-helm -├── indexes -│ ├── # MongoDB database name -│ │ ├── .json # MongoDB indexes for the specified collection -``` - -#### Enabling auto-index creation - -For first-time installations, you **must** enable auto-index creation by setting the following values: - -```yaml -global: - env: - MONGOOSE_AUTO_INDEX: "true" - MONGO_AUTOMATIC_INDEX_CREATION: "true" -``` - -You **should** disable it for the next upgrades by setting these variables to `false`: - -```yaml -global: - env: - MONGOOSE_AUTO_INDEX: "false" - MONGO_AUTOMATIC_INDEX_CREATION: "false" -``` - -#### Creating Indexes manually - -> **Note!** If you have a large amount of MongoDB data, it is recommended to create indexes manually. Enabling auto-index creation can cause performance degradation during the index creation process with large datasets. - -Depending on your MongoDB service (e.g., Atlas, self-hosted), you can create indexes using the MongoDB shell or the Atlas UI. - -Ref: -- [Create an Index in Atlas DB](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/#create-an-index) -- [Create an Index with mongosh](https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/) - -##### ⚠️ Upgrading when the indexes are maintained manually - -If you maintain indexes manually and you upgrade your On-Prem installation you must create all indexes which were introduced from your current version up to the version you upgrade to manually. - -You can follow [Upgrading section](#upgrading) to see what changes were made for indexes in every specific release. - ### High Availability The chart installs the non-HA version of Codefresh by default. If you want to run Codefresh in HA mode, use the example values below. @@ -1492,6 +1443,87 @@ To see all the claims supported by Codefresh OIDC provider, see `claims_supporte Use [obtain-oidc-id-token](https://github.com/codefresh-io/steps/blob/822afc0a9a128384e76459c6573628020a2cf404/incubating/obtain-oidc-id-token/step.yaml#L27-L58) and [aws-sts-assume-role-with-web-identity](https://github.com/codefresh-io/steps/blob/822afc0a9a128384e76459c6573628020a2cf404/incubating/aws-sts-assume-role-with-web-identity/step.yaml#L29-L63) steps to exchange the OIDC token (JWT) for a cloud access token. +## Maintaining MongoDB Indexes + +Sometimes, in new releases of Codefresh On-Prem, index requirements change. When this happens, it's mentioned in the [Upgrading section](#upgrading) for the specific release. + +> ℹ️ If you're upgrading from version `X` to version `Y`, and index requirements were updated in any of the intermediate versions, you only need to align your indexes with the index requirements of version `Y`. To do that, follow [Index alignment](#index-alignment) instructions. + +### Index alignment + +The required index definitions for each release can be found at the following resources: + +- `2.6` +- `2.7` +- `2.8` + +The indexes are stored in JSON files with keys and options specified. + +The directory structure is: + +```console +indexes +├── # MongoDB database name +│ ├── .json # MongoDB indexes for the specified collection +``` + +**Overview of the index alignment process:** + +1. Identify the differences between the indexes in your MongoDB instance and the required index definitions. +2. Create any missing indexes one by one. (It's important not to create them in bulk.) +3. Perform the upgrade of Codefresh On-Prem installation. +4. Then remove any unnecessary indexes. + +> ⚠️ **Note! Any changes to indexes should be performed during a defined maintenance window or during periods of lowest traffic to MongoDB.** +> +> Building indexes during time periods where the target collection is under heavy write load can result in reduced write performance and longer index builds. ([*Source: MongoDB official documentation*](https://www.mongodb.com/docs/manual/core/index-creation/#index-build-impact-on-database-performance)) +> +> Even minor changes to indexes (e.g., index removal) can cause brief but noticeable performance degradation ([*Source: MongoDB official documentation*](https://www.mongodb.com/docs/manual/core/query-plans/#plan-cache-flushes)) + +#### Self-hosted MongoDB + +For self-hosted MongoDB, follow the instructions below: + +- Connect to the MongoDB server using the [mongosh](https://www.mongodb.com/docs/mongodb-shell/install/) shell. Open your terminal or command prompt and run the following command, replacing `` with the appropriate MongoDB connection string for your server: + +```shell +mongosh "" +``` + +- Retrieve the list of indexes for a specific collection: + +```js +db.getSiblingDB('').getCollection('').getIndexes() +``` + +- Compare your indexes with the required indexes for the target release, and adjust them by creating any missing indexes or removing any unnecessary ones + +**Index creation** + +> ⚠ **Note! Always create indexes sequentially, one by one. Don't create them in bulk.** + +- To create an index, use the `createIndex()` method: + +```js +db.getSiblingDB('').getCollection('').createIndex(, ) +``` + +After executing the `createIndex()` command, you should see a result indicating that the index was created successfully. + +**Index removal** + +- To remove an index, use the `dropIndex()` method with ``: + +```js +db.getSiblingDB('').getCollection('').dropIndex('') +``` + +#### Atlas Database + +If you're hosting MongoDB on [Atlas](https://www.mongodb.com/atlas/database), use the following [Manage Indexes](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/) guide to View, Create or Remove indexes. + +> ⚠️ **Important!** In Atlas, for production environments, it is recommended to use rolling index builds by enabling the "Build index via rolling process" checkbox. ([*MongoDB official documentation*](https://www.mongodb.com/docs/v6.0/tutorial/build-indexes-on-replica-sets/)) + ## Upgrading ### To 2-0-0 @@ -2027,24 +2059,22 @@ cfapi: ### To 2-6-0 +> ⚠️ **WARNING! MongoDB indexes changed!** +> +> Please, follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements **BEFORE** the upgrade process. + ### [What's new in 2.6.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-26) #### Affected values [Image digests in containers](#image-digests-in-containers) -#### Auto-index creation in MongoDB - -[Auto-index creation in MongoDB](#auto-index-creation-in-mongodb) - -#### ⚠️ New indexes in MongoDB - -If you maintain indexes manually (i.e. [Auto-index creation](#enabling-auto-index-creation) is off) you must create the following index **before** the upgrade: - -- [Database: `read-models`, collection: `images-binaries`, index: `accountId_1_imageName_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/read-models/images-binaries.json#L75-L94) - ### To 2-7-0 +> ⚠️ **WARNING! MongoDB indexes changed!** +> +> Please, follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements **BEFORE** the upgrade process. + ### [What's new in 2.7.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-27) #### Affected values @@ -2074,17 +2104,12 @@ global: - "value" ``` -#### ⚠️ New indexes in MongoDB - -If you maintain indexes manually (i.e. [Auto-index creation](#enabling-auto-index-creation) is off) you must create the following indexes **before or right after** the upgrade: - -> ⚠ **Note!** In case if you create indexes **before** the upgrade, please, create `codefresh.feature-store-versioned` collection manually in advance. - -- [Database: `codefresh`, collection: `feature-store-versioned`, index: `createdAt_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/feature-store-versioned.json#L2-L9) -- [Database: `codefresh`, collection: `feature-store-versioned`, index: `LDRedisStoreVersion_1__id_-1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/feature-store-versioned.json#L10-L17) - ### To 2-8-0 +> ⚠️ **WARNING! MongoDB indexes changed!** +> +> Please, follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements **BEFORE** the upgrade process. + ### [What's new in 2.8.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-28) ### ⚠️ ⚠️ ⚠️ Breaking changes. Read before upgrading! @@ -2123,13 +2148,6 @@ mongodb: enabled: false ``` -#### ⚠️ New indexes in MongoDB - -If you maintain indexes manually (i.e. [Auto-index creation](#enabling-auto-index-creation) is off) you must create the following indexes **before** the upgrade: - -- [Database: `codefresh`, collection: `users`, index: `account_1__id_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/users.json#L2-L9) -- [Database: `codefresh`, collection: `users`, index: `role_1_account_1__id_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/users.json#L10-L17) - ### PostgreSQL update Default PostgreSQL image is changed from 13.x to 17.x diff --git a/codefresh/README.md.gotmpl b/codefresh/README.md.gotmpl index 2fc1306ac..b4e6015b5 100644 --- a/codefresh/README.md.gotmpl +++ b/codefresh/README.md.gotmpl @@ -24,7 +24,6 @@ Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/ - [Configuration with ALB (Application Load Balancer)](#configuration-with-alb-application-load-balancer) - [Configuration with Private Registry](#configuration-with-private-registry) - [Configuration with multi-role CF-API](#configuration-with-multi-role-cf-api) - - [Indexes in MongoDB](#indexes-in-mongodb) - [High Availability](#high-availability) - [Mounting private CA certs](#mounting-private-ca-certs) - [Installing on OpenShift](#installing-on-openshift) @@ -36,6 +35,7 @@ Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/ - [X-Frame-Options response header](#x-frame-options-response-header) - [Image digests in containers](#image-digests-in-containers) - [Configuring OIDC Provider](#configuring-oidc-provider) +- [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) - [Upgrading](#upgrading) - [To 2.0.0](#to-2-0-0) - [To 2.0.12](#to-2-0-12) @@ -81,8 +81,6 @@ See [Use OCI-based registries](https://helm.sh/docs/topics/registries/) **Important:** only helm 3.8.0+ is supported -**Important:** Read about [Indexes in MongoDB](#indexes-in-mongodb) before installation - Edit default `values.yaml` or create empty `cf-values.yaml` - Pass `sa.json` (as a single line) to `.Values.imageCredentials.password` @@ -95,7 +93,7 @@ imageCredentials: password: '{ "type": "service_account", "project_id": "codefresh-enterprise", "private_key_id": ... }' ``` -- Specify `.Values.global.appUrl`, `.Values.global.firebaseUrl` and `.Values.global.firebaseSecret` +- Specify `.Values.global.appUrl`, `.Values.global.firebaseUrl`, `.Values.global.firebaseSecret`, `.Values.global.env.MONGOOSE_AUTO_INDEX`, `.Values.global.env.MONGO_AUTOMATIC_INDEX_CREATION` ```yaml global: @@ -120,9 +118,9 @@ global: # name: my-secret # key: firebase-secret - # -- Enable auto-index creation in MongoDB + # -- Enable index creation in MongoDB # This is required for first-time installations! - # For upgrades, you should set it to `false`! + # Before usage in Production, you must set it to `false` or remove it! env: MONGOOSE_AUTO_INDEX: "true" MONGO_AUTOMATIC_INDEX_CREATION: "true" @@ -182,6 +180,17 @@ ingress-nginx: --timeout 15m ``` +### ⚠️ **MANDATORY** Post-Installation Action Items + +Once your Codefresh On-Prem instance is installed, configured, and confirmed to be ready for production use, the following variables must be set to `false` or removed: + +```yaml +global: + env: + MONGOOSE_AUTO_INDEX: "false" + MONGO_AUTOMATIC_INDEX_CREATION: "false" +``` + ## Chart Configuration See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands: @@ -788,64 +797,6 @@ cfapi-test-reporting: enabled: true ``` -⚠️ ⚠️ ⚠️ -### Indexes in MongoDB -⚠️ ⚠️ ⚠️ - -Indexes in MongoDB are essential for efficient query performance, especially as your data grows. Without proper indexes, MongoDB must perform full collection scans to find matching documents, which can significantly slow down operations and increase resource usage. For production environments, ensuring that all frequently queried fields are indexed is vital to maintain optimal performance and scalability. - -Auto-index creation in MongoDB is disabled by default in Codefresh On-Prem to prevent unexpected performance issues in production environments during upgrades. When enabled, MongoDB will automatically create indexes for fields used in queries, which can lead to high CPU and disk usage, increased I/O, and potential service disruptions—especially on large datasets. By requiring manual index management, administrators can plan index creation during maintenance windows, ensuring system stability and predictable performance before upgrading Codefresh On-Prem. - -It is critical to ensure that your MongoDB indexes are always aligned with the latest recommended state for your Codefresh On-Prem version. Outdated or missing indexes can lead to degraded performance, slow queries, and increased resource consumption. Always review release notes and update or create indexes as specified during upgrades or when new collections/fields are introduced. Regularly auditing and maintaining your indexes helps ensure optimal system reliability and scalability. - -The indexes list is located at the [codefresh-io/codefresh-onprem-helm](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes) repository. -The indexes are stored in JSON files with keys and options specified. - -The directory structure is: - -```console -codefresh-onprem-helm -├── indexes -│ ├── # MongoDB database name -│ │ ├── .json # MongoDB indexes for the specified collection -``` - -#### Enabling auto-index creation - -For first-time installations, you **must** enable auto-index creation by setting the following values: - -```yaml -global: - env: - MONGOOSE_AUTO_INDEX: "true" - MONGO_AUTOMATIC_INDEX_CREATION: "true" -``` - -You **should** disable it for the next upgrades by setting these variables to `false`: - -```yaml -global: - env: - MONGOOSE_AUTO_INDEX: "false" - MONGO_AUTOMATIC_INDEX_CREATION: "false" -``` - -#### Creating Indexes manually - -> **Note!** If you have a large amount of MongoDB data, it is recommended to create indexes manually. Enabling auto-index creation can cause performance degradation during the index creation process with large datasets. - -Depending on your MongoDB service (e.g., Atlas, self-hosted), you can create indexes using the MongoDB shell or the Atlas UI. - -Ref: -- [Create an Index in Atlas DB](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/#create-an-index) -- [Create an Index with mongosh](https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/) - -##### ⚠️ Upgrading when the indexes are maintained manually - -If you maintain indexes manually and you upgrade your On-Prem installation you must create all indexes which were introduced from your current version up to the version you upgrade to manually. - -You can follow [Upgrading section](#upgrading) to see what changes were made for indexes in every specific release. - ### High Availability The chart installs the non-HA version of Codefresh by default. If you want to run Codefresh in HA mode, use the example values below. @@ -1499,6 +1450,87 @@ To see all the claims supported by Codefresh OIDC provider, see `claims_supporte Use [obtain-oidc-id-token](https://github.com/codefresh-io/steps/blob/822afc0a9a128384e76459c6573628020a2cf404/incubating/obtain-oidc-id-token/step.yaml#L27-L58) and [aws-sts-assume-role-with-web-identity](https://github.com/codefresh-io/steps/blob/822afc0a9a128384e76459c6573628020a2cf404/incubating/aws-sts-assume-role-with-web-identity/step.yaml#L29-L63) steps to exchange the OIDC token (JWT) for a cloud access token. +## Maintaining MongoDB Indexes + +Sometimes, in new releases of Codefresh On-Prem, index requirements change. When this happens, it's mentioned in the [Upgrading section](#upgrading) for the specific release. + +> ℹ️ If you're upgrading from version `X` to version `Y`, and index requirements were updated in any of the intermediate versions, you only need to align your indexes with the index requirements of version `Y`. To do that, follow [Index alignment](#index-alignment) instructions. + +### Index alignment + +The required index definitions for each release can be found at the following resources: + +- `2.6` +- `2.7` +- `2.8` + +The indexes are stored in JSON files with keys and options specified. + +The directory structure is: + +```console +indexes +├── # MongoDB database name +│ ├── .json # MongoDB indexes for the specified collection +``` + +**Overview of the index alignment process:** + +1. Identify the differences between the indexes in your MongoDB instance and the required index definitions. +2. Create any missing indexes one by one. (It's important not to create them in bulk.) +3. Perform the upgrade of Codefresh On-Prem installation. +4. Then remove any unnecessary indexes. + +> ⚠️ **Note! Any changes to indexes should be performed during a defined maintenance window or during periods of lowest traffic to MongoDB.** +> +> Building indexes during time periods where the target collection is under heavy write load can result in reduced write performance and longer index builds. ([*Source: MongoDB official documentation*](https://www.mongodb.com/docs/manual/core/index-creation/#index-build-impact-on-database-performance)) +> +> Even minor changes to indexes (e.g., index removal) can cause brief but noticeable performance degradation ([*Source: MongoDB official documentation*](https://www.mongodb.com/docs/manual/core/query-plans/#plan-cache-flushes)) + +#### Self-hosted MongoDB + +For self-hosted MongoDB, follow the instructions below: + +- Connect to the MongoDB server using the [mongosh](https://www.mongodb.com/docs/mongodb-shell/install/) shell. Open your terminal or command prompt and run the following command, replacing `` with the appropriate MongoDB connection string for your server: + + +```shell +mongosh "" +``` + +- Retrieve the list of indexes for a specific collection: + +```js +db.getSiblingDB('').getCollection('').getIndexes() +``` + +- Compare your indexes with the required indexes for the target release, and adjust them by creating any missing indexes or removing any unnecessary ones + +**Index creation** + +> ⚠ **Note! Always create indexes sequentially, one by one. Don't create them in bulk.** + +- To create an index, use the `createIndex()` method: + +```js +db.getSiblingDB('').getCollection('').createIndex(, ) +``` + +After executing the `createIndex()` command, you should see a result indicating that the index was created successfully. + +**Index removal** + +- To remove an index, use the `dropIndex()` method with ``: + +```js +db.getSiblingDB('').getCollection('').dropIndex('') +``` + +#### Atlas Database + +If you're hosting MongoDB on [Atlas](https://www.mongodb.com/atlas/database), use the following [Manage Indexes](https://www.mongodb.com/docs/atlas/atlas-ui/indexes/) guide to View, Create or Remove indexes. + +> ⚠️ **Important!** In Atlas, for production environments, it is recommended to use rolling index builds by enabling the "Build index via rolling process" checkbox. ([*MongoDB official documentation*](https://www.mongodb.com/docs/v6.0/tutorial/build-indexes-on-replica-sets/)) ## Upgrading @@ -2036,24 +2068,22 @@ cfapi: ### To 2-6-0 +> ⚠️ **WARNING! MongoDB indexes changed!** +> +> Please, follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements **BEFORE** the upgrade process. + ### [What's new in 2.6.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-26) #### Affected values [Image digests in containers](#image-digests-in-containers) -#### Auto-index creation in MongoDB - -[Auto-index creation in MongoDB](#auto-index-creation-in-mongodb) - -#### ⚠️ New indexes in MongoDB - -If you maintain indexes manually (i.e. [Auto-index creation](#enabling-auto-index-creation) is off) you must create the following index **before** the upgrade: - -- [Database: `read-models`, collection: `images-binaries`, index: `accountId_1_imageName_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/read-models/images-binaries.json#L75-L94) - ### To 2-7-0 +> ⚠️ **WARNING! MongoDB indexes changed!** +> +> Please, follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements **BEFORE** the upgrade process. + ### [What's new in 2.7.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-27) #### Affected values @@ -2083,17 +2113,12 @@ global: - "value" ``` -#### ⚠️ New indexes in MongoDB - -If you maintain indexes manually (i.e. [Auto-index creation](#enabling-auto-index-creation) is off) you must create the following indexes **before or right after** the upgrade: - -> ⚠ **Note!** In case if you create indexes **before** the upgrade, please, create `codefresh.feature-store-versioned` collection manually in advance. - -- [Database: `codefresh`, collection: `feature-store-versioned`, index: `createdAt_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/feature-store-versioned.json#L2-L9) -- [Database: `codefresh`, collection: `feature-store-versioned`, index: `LDRedisStoreVersion_1__id_-1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/feature-store-versioned.json#L10-L17) - ### To 2-8-0 +> ⚠️ **WARNING! MongoDB indexes changed!** +> +> Please, follow [Maintaining MongoDB indexes](#maintaining-mongodb-indexes) guide to meet index requirements **BEFORE** the upgrade process. + ### [What's new in 2.8.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-28) ### ⚠️ ⚠️ ⚠️ Breaking changes. Read before upgrading! @@ -2132,15 +2157,6 @@ mongodb: enabled: false ``` -#### ⚠️ New indexes in MongoDB - - -If you maintain indexes manually (i.e. [Auto-index creation](#enabling-auto-index-creation) is off) you must create the following indexes **before** the upgrade: - - -- [Database: `codefresh`, collection: `users`, index: `account_1__id_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/users.json#L2-L9) -- [Database: `codefresh`, collection: `users`, index: `role_1_account_1__id_1`](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.8/indexes/codefresh/users.json#L10-L17) - ### PostgreSQL update Default PostgreSQL image is changed from 13.x to 17.x diff --git a/indexes/codefresh/agenttasks.json b/indexes/codefresh/agenttasks.json index 8c761fcd0..7e5b1f26f 100644 --- a/indexes/codefresh/agenttasks.json +++ b/indexes/codefresh/agenttasks.json @@ -1,29 +1,20 @@ [ { - "v" : 2.0, - "key" : { - "_id" : 1.0 - }, - "name" : "_id_" - }, - { - "v" : 2.0, - "key" : { - "metadata.accountId" : 1, - "metadata.reIdentifier" : 1, - "metadata.shouldExecute" : 1, - "metadata.startAt" : 1, - "metadata.status" : 1, - "metadata.expireAt" : 1 - }, - "name" : "metadata.accountId_1_metadata.reIdentifier_1_metadata.shouldExecute_1_metadata.startAt_1_metadata.status_1_metadata.expireAt_1" + "keys": { + "metadata.accountId": 1, + "metadata.reIdentifier": 1, + "metadata.shouldExecute": 1, + "metadata.startAt": 1, + "metadata.status": 1, + "metadata.expireAt": 1 + } }, { - "v" : 2.0, - "key" : { - "metadata.expireAt" : 1 + "keys": { + "metadata.expireAt": 1 }, - "name" : "metadata.expireAt_1", - "expireAfterSeconds" : 0.0 + "options": { + "expireAfterSeconds": 0 + } } -] +] \ No newline at end of file diff --git a/indexes/codefresh/feature-store-versioned.json b/indexes/codefresh/feature-store-versioned.json index 4be0e7132..e5c9af57f 100644 --- a/indexes/codefresh/feature-store-versioned.json +++ b/indexes/codefresh/feature-store-versioned.json @@ -1,25 +1,16 @@ [ { - "expireAfterSeconds": 43200.0, - "key": { - "createdAt": 1.0 + "keys": { + "createdAt": 1 }, - "name": "createdAt_1", - "v": 2.0 + "options": { + "expireAfterSeconds": 43200 + } }, { - "key": { - "_id": -1.0, - "LDRedisStoreVersion": 1.0 - }, - "name": "LDRedisStoreVersion_1__id_-1", - "v": 2.0 - }, - { - "key": { - "_id": 1.0 - }, - "name": "_id_", - "v": 2.0 + "keys": { + "_id": -1, + "LDRedisStoreVersion": 1 + } } -] +] \ No newline at end of file diff --git a/indexes/codefresh/users.json b/indexes/codefresh/users.json index 64ea6d343..07200446a 100644 --- a/indexes/codefresh/users.json +++ b/indexes/codefresh/users.json @@ -1,19 +1,15 @@ [ - { - "v": 2.0, - "key": { - "account": 1.0, - "_id": 1.0 + { + "keys": { + "account": 1, + "_id": 1 + } }, - "name": "account_1__id_1" - }, - { - "v": 2.0, - "key": { - "role": 1.0, - "account": 1.0, - "_id": 1.0 - }, - "name": "role_1_account_1__id_1" - } -] + { + "keys": { + "role": 1, + "account": 1, + "_id": 1 + } + } +] \ No newline at end of file diff --git a/indexes/codefresh/workflowprocesses.json b/indexes/codefresh/workflowprocesses.json index e2e6e65a3..0477e6108 100644 --- a/indexes/codefresh/workflowprocesses.json +++ b/indexes/codefresh/workflowprocesses.json @@ -1,460 +1,385 @@ [ { - "v" : 1.0, - "key" : { - "account" : 1.0, - "pendingLicense" : 1.0, - "created" : 1.0 - }, - "name" : "account_1_pendingLicense_1_created_1" + "keys": { + "account": 1, + "pendingLicense": 1, + "created": 1 + } }, { - "v" : 1.0, - "key" : { - "pipeline" : 1.0, - "status" : 1.0 - }, - "name" : "pipeline_1_status_1" + "keys": { + "pipeline": 1, + "status": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1.0, - "triggerType" : 1.0 - }, - "name" : "account_1_triggerType_1" + "keys": { + "account": 1, + "triggerType": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1.0, - "pipelineInfo.pipelineId" : 1.0 - }, - "name" : "account_1_pipelineInfo.pipelineId_1" + "keys": { + "account": 1, + "pipelineInfo.pipelineId": 1 + } }, { - "v" : 1.0, - "key" : { - "account" : 1.0, - "startImmediately" : 1.0, - "status" : 1.0 - }, - "name" : "account_1_startImmediately_1_status_1" + "keys": { + "account": 1, + "startImmediately": 1, + "status": 1 + } }, { - "v" : 1.0, - "key" : { - "account" : 1.0, - "scmMetadata.repoName" : 1.0, - "scmMetadata.repoOwner" : 1.0, - "trigger" : 1.0, - "service" : 1.0 - }, - "name" : "account_1_scmMetadata.repoName_1_scmMetadata.repoOwner_1_trigger_1_service_1" + "keys": { + "account": 1, + "scmMetadata.repoName": 1, + "scmMetadata.repoOwner": 1, + "trigger": 1, + "service": 1 + } }, { - "v" : 1.0, - "key" : { - "isPublic" : 1.0 - }, - "name" : "isPublic_1" + "keys": { + "isPublic": 1 + } }, { - "v" : 2.0, - "key" : { - "codefreshEnv" : 1, - "status" : 1, - "shouldPerformFinishSystem" : 1, - "_id" : 1 - }, - "name" : "codefreshEnv_1_status_1_shouldPerformFinishSystem_1__id_1" + "keys": { + "codefreshEnv": 1, + "status": 1, + "shouldPerformFinishSystem": 1, + "_id": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "helmInfo.boardId" : 1 - }, - "name" : "account_1_helmInfo.boardId_1" + "keys": { + "account": 1, + "helmInfo.boardId": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1.0, - "environs" : 1.0 - }, - "name" : "account_1_environs_1" + "keys": { + "account": 1, + "environs": 1 + } }, { - "v" : 1.0, - "key" : { - "account" : 1.0, - "status" : 1.0, - "trigger" : 1.0 - }, - "name" : "account_1_status_1_trigger_1" + "keys": { + "account": 1, + "status": 1, + "trigger": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "pipeline" : 1, - "trigger" : 1, - "_id" : -1 - }, - "name" : "account_1_pipeline_1_trigger_1__id_-1" + "keys": { + "account": 1, + "pipeline": 1, + "trigger": 1, + "_id": -1 + } }, { - "v" : 1.0, - "key" : { - "scmMetadata.branchName" : 1.0, - "account" : 1.0, - "pipeline" : 1.0, - "created" : -1.0, - "finished" : 1.0 - }, - "name" : "scmMetadata.branchName_1_account_1_pipeline_1_created_-1_finished_1" + "keys": { + "scmMetadata.branchName": 1, + "account": 1, + "pipeline": 1, + "created": -1, + "finished": 1 + } }, { - "v" : 2.0, - "key" : { - "trigger" : 1.0, - "account" : 1.0, - "status" : 1.0, - "_id" : -1.0 - }, - "name" : "trigger_1_account_1_status_1__id_-1" + "keys": { + "trigger": 1, + "account": 1, + "status": 1, + "_id": -1 + } }, { - "v" : 1.0, - "key" : { - "account" : 1.0, - "trigger" : 1.0, - "scmMetadata.repoName" : 1.0, - "service" : 1.0 - }, - "name" : "account_1_trigger_1_scmMetadata.repoName_1_service_1" + "keys": { + "account": 1, + "trigger": 1, + "scmMetadata.repoName": 1, + "service": 1 + } }, { - "v" : 1.0, - "key" : { - "service" : 1.0, - "status" : 1.0 - }, - "name" : "service_1_status_1" + "keys": { + "service": 1, + "status": 1 + } }, { - "v" : 1.0, - "key" : { - "finished" : 1.0 - }, - "name" : "finished_1" + "keys": { + "finished": 1 + } }, { - "v" : 2.0, - "key" : { - "healthStatus.engine.status" : 1.0 - }, - "name" : "healthStatus.engine.status_1" + "keys": { + "healthStatus.engine.status": 1 + } }, { - "v" : 2.0, - "key" : { - "codefreshEnv" : 1, - "status" : 1, - "_id" : 1 - }, - "name" : "codefreshEnv_1_status_1__id_1" + "keys": { + "codefreshEnv": 1, + "status": 1, + "_id": 1 + } }, { - "v" : 1.0, - "key" : { - "account" : 1.0, - "service" : 1.0, - "trigger" : 1.0 - }, - "name" : "account_1_service_1_trigger_1" + "keys": { + "account": 1, + "service": 1, + "trigger": 1 + } }, { - "v" : 1.0, - "key" : { - "scmMetadata.branchName" : 1.0, - "service" : 1.0, - "status" : 1.0, - "created" : -1.0 - }, - "name" : "scmMetadata.branchName_1_service_1_status_1_created_-1" + "keys": { + "scmMetadata.branchName": 1, + "service": 1, + "status": 1, + "created": -1 + } }, { - "v" : 1.0, - "key" : { - "status" : 1.0, - "trigger" : 1.0 - }, - "name" : "status_1_trigger_1" + "keys": { + "status": 1, + "trigger": 1 + } }, { - "v" : 2.0, - "key" : { - "pipeline" : 1.0, - "finished" : -1.0 - }, - "name" : "pipeline_1_finished_-1" + "keys": { + "pipeline": 1, + "finished": -1 + } }, { - "v" : 1.0, - "key" : { - "progress" : 1.0 - }, - "name" : "progress_1" + "keys": { + "progress": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1.0, - "environ" : 1.0 - }, - "name" : "account_1_environ_1" + "keys": { + "account": 1, + "environ": 1 + } }, { - "v" : 2.0, - "key" : { - "status" : 1, - "created" : -1 - }, - "name" : "status_1_created_-1" + "keys": { + "status": 1, + "created": -1 + } }, { - "v" : 2.0, - "key" : { - "createdAt" : 1.0 - }, - "name" : "createdAt_1" + "keys": { + "createdAt": 1 + } }, { - "v" : 1.0, - "key" : { - "request" : 1.0 - }, - "name" : "request_1" + "keys": { + "request": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "_id" : 1, - "scmMetadata.repoName" : 1 - }, - "name" : "account_1__id_1_scmMetadata.repoName_1" + "keys": { + "account": 1, + "_id": 1, + "scmMetadata.repoName": 1 + } }, { - "v" : 2.0, - "key" : { - "pipeline" : 1, - "created" : -1 - }, - "name" : "pipeline_1_created_-1" + "keys": { + "pipeline": 1, + "created": -1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "status" : 1, - "created" : 1 - }, - "name" : "account_1_status_1_created_1" + "keys": { + "account": 1, + "status": 1, + "created": 1 + } }, { - "v" : 2.0, - "key" : { - "status" : 1, - "runtimeEnvironmentMetadata.agent" : 1, - "created" : 1 - }, - "name" : "status_1_runtimeEnvironmentMetadata.agent_1_created_1" + "keys": { + "status": 1, + "runtimeEnvironmentMetadata.agent": 1, + "created": 1 + } }, { - "v" : 2.0, - "key" : { - "created" : 1 + "keys": { + "created": 1 }, - "name" : "created_1", - "expireAfterSeconds" : 31536000.0 + "options": { + "expireAfterSeconds": 31536000 + } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "status" : 1, - "trigger" : 1, - "pipeline" : 1, - "keepPVCsForPendingApproval" : 1 - }, - "name" : "account_1_status_1_trigger_1_pipeline_1_keepPVCsForPendingApproval_1", - "partialFilterExpression" : { - "status" : { - "$in" : [ - "pending", - "delayed", - "elected", - "running", - "terminating", - "pending-approval" - ] + "keys": { + "account": 1, + "status": 1, + "trigger": 1, + "pipeline": 1, + "keepPVCsForPendingApproval": 1 + }, + "options": { + "partialFilterExpression": { + "status": { + "$in": [ + "pending", + "delayed", + "elected", + "running", + "terminating", + "pending-approval" + ] + } } } }, { - "v" : 2.0, - "key" : { - "_id" : 1.0 + "keys": { + "account": 1, + "scmMetadata.revision": 1, + "_id": -1, + "pipeline": 1 }, - "name" : "_id_" - }, - { - "v" : 2.0, - "key" : { - "account" : 1, - "scmMetadata.revision" : 1, - "_id" : -1, - "pipeline" : 1 - }, - "name" : "account_1_scmMetadata.revision_1__id_-1_pipeline_1", - "partialFilterExpression" : { - "scmMetadata.revision" : { - "$exists" : true + "options": { + "partialFilterExpression": { + "scmMetadata.revision": { + "$exists": true + } } } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "scmMetadata.userName" : 1, - "_id" : -1, - "pipeline" : 1 + "keys": { + "account": 1, + "trigger": 1, + "scmMetadata.userName": 1, + "_id": -1, + "pipeline": 1 }, - "name" : "account_1_trigger_1_scmMetadata.userName_1__id_-1_pipeline_1", - "partialFilterExpression" : { - "scmMetadata.userName" : { - "$exists" : true + "options": { + "partialFilterExpression": { + "scmMetadata.userName": { + "$exists": true + } } } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "annotations.key" : 1, - "annotations.value" : 1, - "_id" : -1, - "pipeline" : 1 + "keys": { + "account": 1, + "trigger": 1, + "annotations.key": 1, + "annotations.value": 1, + "_id": -1, + "pipeline": 1 }, - "name" : "account_1_trigger_1_annotations.key_1_annotations.value_1__id_-1_pipeline_1", - "sparse" : true + "options": { + "sparse": true + } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "pipelineTrigger" : 1, - "_id" : -1, - "pipeline" : 1 + "keys": { + "account": 1, + "trigger": 1, + "pipelineTrigger": 1, + "_id": -1, + "pipeline": 1 }, - "name" : "account_1_trigger_1_pipelineTrigger_1__id_-1_pipeline_1", - "partialFilterExpression" : { - "pipelineTrigger" : { - "$exists" : true + "options": { + "partialFilterExpression": { + "pipelineTrigger": { + "$exists": true + } } } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "scmMetadata.branchName" : 1, - "_id" : -1, - "pipeline" : 1 + "keys": { + "account": 1, + "trigger": 1, + "scmMetadata.branchName": 1, + "_id": -1, + "pipeline": 1 }, - "name" : "account_1_trigger_1_scmMetadata.branchName_1__id_-1_pipeline_1", - "partialFilterExpression" : { - "scmMetadata.branchName" : { - "$exists" : true + "options": { + "partialFilterExpression": { + "scmMetadata.branchName": { + "$exists": true + } } } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "_id" : -1, - "pipeline" : 1 - }, - "name" : "account_1_trigger_1__id_-1_pipeline_1" + "keys": { + "account": 1, + "trigger": 1, + "_id": -1, + "pipeline": 1 + } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "scmMetadata.provider" : 1, - "_id" : -1, - "pipeline" : 1 + "keys": { + "account": 1, + "trigger": 1, + "scmMetadata.provider": 1, + "_id": -1, + "pipeline": 1 }, - "name" : "account_1_trigger_1_scmMetadata.provider_1__id_-1_pipeline_1", - "partialFilterExpression" : { - "scmMetadata.provider" : { - "$exists" : true + "options": { + "partialFilterExpression": { + "scmMetadata.provider": { + "$exists": true + } } } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "scmMetadata.repoName" : 1, - "_id" : -1, - "pipeline" : 1 + "keys": { + "account": 1, + "trigger": 1, + "scmMetadata.repoName": 1, + "_id": -1, + "pipeline": 1 }, - "name" : "account_1_trigger_1_scmMetadata.repoName_1__id_-1_pipeline_1", - "partialFilterExpression" : { - "scmMetadata.repoName" : { - "$exists" : true + "options": { + "partialFilterExpression": { + "scmMetadata.repoName": { + "$exists": true + } } } }, { - "v" : 2.0, - "key" : { - "account" : 1, - "trigger" : 1, - "scmMetadata.provider" : 1, - "scmMetadata.event" : 1, - "_id" : -1, - "pipeline" : 1 - }, - "name" : "account_1_trigger_1_scmMetadata.provider_1_scmMetadata.event_1__id_-1_pipeline_1", - "partialFilterExpression" : { - "scmMetadata.event" : { - "$exists" : true - }, - "scmMetadata.provider" : { - "$exists" : true + "keys": { + "account": 1, + "trigger": 1, + "scmMetadata.provider": 1, + "scmMetadata.event": 1, + "_id": -1, + "pipeline": 1 + }, + "options": { + "partialFilterExpression": { + "scmMetadata.event": { + "$exists": true + }, + "scmMetadata.provider": { + "$exists": true + } } } }, { - "v" : 2.0, - "key" : { - "pipeline" : 1, - "_id" : -1 - }, - "name" : "pipeline_1__id_-1" + "keys": { + "pipeline": 1, + "_id": -1 + } } -] +] \ No newline at end of file diff --git a/indexes/read-models/analysisruns.json b/indexes/read-models/analysisruns.json index 2a5c93752..7c8071247 100644 --- a/indexes/read-models/analysisruns.json +++ b/indexes/read-models/analysisruns.json @@ -1,332 +1,313 @@ [ { - "v" : 2.0, - "key" : { - "_id" : 1.0 + "keys": { + "__passiveReferencedBy.name": 1 }, - "name" : "_id_" - }, - { - "v" : 2.0, - "key" : { - "__passiveReferencedBy.name" : 1.0 - }, - "name" : "__passiveReferencedBy.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__passiveReferencedBy.name" : 1.0, - "__passiveReferencedBy.kind" : 1.0, - "__passiveReferencedBy.namespace" : 1.0, - "__passiveReferencedBy.group" : 1.0, - "__passiveReferencedBy.version" : 1.0 + "keys": { + "__passiveReferencedBy.name": 1, + "__passiveReferencedBy.kind": 1, + "__passiveReferencedBy.namespace": 1, + "__passiveReferencedBy.group": 1, + "__passiveReferencedBy.version": 1 }, - "name" : "__passiveReferencedBy.name_1___passiveReferencedBy.kind_1___passiveReferencedBy.namespace_1___passiveReferencedBy.group_1___passiveReferencedBy.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__passiveReferences.name" : 1.0 + "keys": { + "__passiveReferences.name": 1 }, - "name" : "__passiveReferences.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__passiveReferences.name" : 1.0, - "__passiveReferences.kind" : 1.0, - "__passiveReferences.namespace" : 1.0, - "__passiveReferences.group" : 1.0, - "__passiveReferences.version" : 1.0 + "keys": { + "__passiveReferences.name": 1, + "__passiveReferences.kind": 1, + "__passiveReferences.namespace": 1, + "__passiveReferences.group": 1, + "__passiveReferences.version": 1 }, - "name" : "__passiveReferences.name_1___passiveReferences.kind_1___passiveReferences.namespace_1___passiveReferences.group_1___passiveReferences.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferencedBy.name" : 1.0 + "keys": { + "__inferredReferencedBy.name": 1 }, - "name" : "__inferredReferencedBy.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferencedBy.name" : 1.0, - "__inferredReferencedBy.kind" : 1.0, - "__inferredReferencedBy.namespace" : 1.0, - "__inferredReferencedBy.group" : 1.0, - "__inferredReferencedBy.version" : 1.0 + "keys": { + "__inferredReferencedBy.name": 1, + "__inferredReferencedBy.kind": 1, + "__inferredReferencedBy.namespace": 1, + "__inferredReferencedBy.group": 1, + "__inferredReferencedBy.version": 1 }, - "name" : "__inferredReferencedBy.name_1___inferredReferencedBy.kind_1___inferredReferencedBy.namespace_1___inferredReferencedBy.group_1___inferredReferencedBy.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferences.name" : 1.0 + "keys": { + "__inferredReferences.name": 1 }, - "name" : "__inferredReferences.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferences.name" : 1.0, - "__inferredReferences.kind" : 1.0, - "__inferredReferences.namespace" : 1.0, - "__inferredReferences.group" : 1.0, - "__inferredReferences.version" : 1.0 + "keys": { + "__inferredReferences.name": 1, + "__inferredReferences.kind": 1, + "__inferredReferences.namespace": 1, + "__inferredReferences.group": 1, + "__inferredReferences.version": 1 }, - "name" : "__inferredReferences.name_1___inferredReferences.kind_1___inferredReferences.namespace_1___inferredReferences.group_1___inferredReferences.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "updatedAt" : 1.0 + "keys": { + "updatedAt": 1 }, - "name" : "updatedAt_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "projects" : 1.0 + "keys": { + "projects": 1 }, - "name" : "projects_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.name" : 1.0 + "keys": { + "metadata.name": 1 }, - "name" : "metadata.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.labels" : 1.0 + "keys": { + "metadata.labels": 1 }, - "name" : "metadata.labels_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.accountId" : 1.0, - "metadata.runtime" : 1.0, - "metadata.cluster" : 1.0, - "metadata.namespace" : 1.0, - "metadata.group" : 1.0, - "metadata.version" : 1.0, - "metadata.kind" : 1.0, - "metadata.name" : 1.0, - "metadata.uid" : 1.0, - "metadata.revision" : 1.0 + "keys": { + "metadata.accountId": 1, + "metadata.runtime": 1, + "metadata.cluster": 1, + "metadata.namespace": 1, + "metadata.group": 1, + "metadata.version": 1, + "metadata.kind": 1, + "metadata.name": 1, + "metadata.uid": 1, + "metadata.revision": 1 }, - "name" : "metadata.accountId_1_metadata.runtime_1_metadata.cluster_1_metadata.namespace_1_metadata.group_1_metadata.version_1_metadata.kind_1_metadata.name_1_metadata.uid_1_metadata.revision_1", - "unique" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "unique": true, + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.accountId" : 1, - "revision" : 1, - "metadata.labels.rollout-type" : 1, - "metadata.runtime" : 1, - "metadata.labels.step-index" : 1 - }, - "name" : "metadata.accountId_1_revision_1_metadata.labels.rollout-type_1_metadata.runtime_1_metadata.labels.step-index_1" + "keys": { + "metadata.accountId": 1, + "revision": 1, + "metadata.labels.rollout-type": 1, + "metadata.runtime": 1, + "metadata.labels.step-index": 1 + } }, { - "v" : 2.0, - "key" : { - "metadata.accountId" : 1, - "revision" : 1, - "metadata.labels.rollout-type" : 1, - "metadata.runtime" : 1, - "metadata.creationTimestamp" : -1 - }, - "name" : "metadata.accountId_1_revision_1_metadata.labels.rollout-type_1_metadata.runtime_1_metadata.creationTimestamp_-1" + "keys": { + "metadata.accountId": 1, + "revision": 1, + "metadata.labels.rollout-type": 1, + "metadata.runtime": 1, + "metadata.creationTimestamp": -1 + } }, { - "v" : 2.0, - "key" : { - "ownerReferences.uid" : 1, - "revision" : 1 + "keys": { + "ownerReferences.uid": 1, + "revision": 1 }, - "name" : "ownerReferences.uid_1_revision_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } } -] +] \ No newline at end of file diff --git a/indexes/read-models/images-binaries.json b/indexes/read-models/images-binaries.json index 338df48e6..c8efda894 100644 --- a/indexes/read-models/images-binaries.json +++ b/indexes/read-models/images-binaries.json @@ -1,95 +1,68 @@ [ { - "v" : 2.0, - "key" : { - "_id" : 1.0 - }, - "name" : "_id_" - }, - { - "v" : 2.0, - "key" : { - "accountId" : 1.0, - "imageName" : 1.0, - "repositoryName" : 1.0 - }, - "name" : "accountId_1_imageName_1_repositoryName_1", - "background" : true + "keys": { + "accountId": 1, + "imageName": 1, + "repositoryName": 1 + } }, { - "v" : 2.0, - "key" : { - "accountId" : 1.0, - "repositoryName" : 1.0, - "gitRepository" : 1.0 - }, - "name" : "accountId_1_repositoryName_1_gitRepository_1", - "background" : true + "keys": { + "accountId": 1, + "repositoryName": 1, + "gitRepository": 1 + } }, { - "v" : 2.0, - "key" : { - "accountId" : 1.0, - "repositoryName" : 1.0, - "branch" : 1.0 - }, - "name" : "accountId_1_repositoryName_1_branch_1", - "background" : true + "keys": { + "accountId": 1, + "repositoryName": 1, + "branch": 1 + } }, { - "v" : 2.0, - "key" : { - "runtime.name" : 1.0 - }, - "name" : "runtime.name_1", - "background" : true + "keys": { + "runtime.name": 1 + } }, { - "v" : 2.0, - "key" : { - "accountId" : 1.0, - "repoDigest" : 1.0 - }, - "name" : "accountId_1_repoDigest_1", - "background" : true + "keys": { + "accountId": 1, + "repoDigest": 1 + } }, { - "v" : 2.0, - "key" : { - "accountId" : 1.0, - "internalImageId" : 1.0 - }, - "name" : "accountId_1_internalImageId_1", - "background" : true + "keys": { + "accountId": 1, + "internalImageId": 1 + } }, { - "v" : 2.0, - "key" : { - "accountId" : 1, - "binaryId" : 1, - "lastUpdate" : -1, - "_id" : -1 - }, - "name" : "accountId_1_binaryId_1_lastUpdate_-1__id_-1" + "keys": { + "accountId": 1, + "binaryId": 1, + "lastUpdate": -1, + "_id": -1 + } }, { - "v" : 2.0, - "key" : { - "accountId" : 1, - "imageName" : 1 + "keys": { + "accountId": 1, + "imageName": 1 }, - "name" : "accountId_1_imageName_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } } -] +] \ No newline at end of file diff --git a/indexes/read-models/product-releases.json b/indexes/read-models/product-releases.json index cfc414c5c..0588ba775 100644 --- a/indexes/read-models/product-releases.json +++ b/indexes/read-models/product-releases.json @@ -1,115 +1,105 @@ [ { - "v": 2, - "key": { - "_id": 1 - }, - "name": "_id_" - }, - { - "v": 2, - "key": { + "keys": { "status": 1 }, - "name": "status_1", - "collation": { - "locale": "en_US", - "caseLevel": false, - "caseFirst": "off", - "strength": 1, - "numericOrdering": false, - "alternate": "non-ignorable", - "maxVariable": "punct", - "normalization": false, - "backwards": false, - "version": "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v": 2, - "key": { + "keys": { "accountId": 1, "updatedAt": -1 }, - "name": "accountId_1_updatedAt_-1", - "collation": { - "locale": "en", - "caseLevel": false, - "caseFirst": "off", - "strength": 2, - "numericOrdering": false, - "alternate": "non-ignorable", - "maxVariable": "punct", - "normalization": false, - "backwards": false, - "version": "57.1" + "options": { + "collation": { + "locale": "en", + "caseLevel": false, + "caseFirst": "off", + "strength": 2, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v": 2, - "key": { + "keys": { "accountId": 1, "productName": 1, "triggerCommit.sha": 1 }, - "name": "accountId_1_productName_1_triggerCommit.sha_1", - "background": true, - "collation": { - "locale": "en_US", - "caseLevel": false, - "caseFirst": "off", - "strength": 1, - "numericOrdering": false, - "alternate": "non-ignorable", - "maxVariable": "punct", - "normalization": false, - "backwards": false, - "version": "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v": 2, - "key": { + "keys": { "accountId": 1, "productName": 1, "status": 1, "triggerEnvironment": 1, "triggerCommit.sha": 1 }, - "name": "accountId_1_productName_1_status_1_triggerEnvironment_1_triggerCommit.sha_1", - "background": true, - "collation": { - "locale": "en_US", - "caseLevel": false, - "caseFirst": "off", - "strength": 1, - "numericOrdering": false, - "alternate": "non-ignorable", - "maxVariable": "punct", - "normalization": false, - "backwards": false, - "version": "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v": 2, - "key": { + "keys": { "accountId": 1, "productName": 1 }, - "name": "accountId_1_productName_1", - "background": true, - "collation": { - "locale": "en_US", - "caseLevel": false, - "caseFirst": "off", - "strength": 1, - "numericOrdering": false, - "alternate": "non-ignorable", - "maxVariable": "punct", - "normalization": false, - "backwards": false, - "version": "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } } ] \ No newline at end of file diff --git a/indexes/read-models/releases.json b/indexes/read-models/releases.json index e48f117e5..731a06bb0 100644 --- a/indexes/read-models/releases.json +++ b/indexes/read-models/releases.json @@ -1,196 +1,140 @@ [ { - "v" : 2.0, - "key" : { - "_id" : 1.0 - }, - "name" : "_id_" + "keys": { + "applicationMetadata.name": 1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.name" : 1.0 - }, - "name" : "applicationMetadata.name_1", - "background" : true + "keys": { + "applicationMetadata.labels": 1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.labels" : 1.0 - }, - "name" : "applicationMetadata.labels_1", - "background" : true + "keys": { + "application.prs.type": 1 + } }, { - "v" : 2.0, - "key" : { - "application.prs.type" : 1.0 - }, - "name" : "application.prs.type_1", - "background" : true + "keys": { + "application.prs.key": 1 + } }, { - "v" : 2.0, - "key" : { - "application.prs.key" : 1.0 - }, - "name" : "application.prs.key_1", - "background" : true + "keys": { + "application.prs.accountId": 1 + } }, { - "v" : 2.0, - "key" : { - "application.prs.accountId" : 1.0 - }, - "name" : "application.prs.accountId_1", - "background" : true + "keys": { + "application.issues.type": 1 + } }, { - "v" : 2.0, - "key" : { - "application.issues.type" : 1.0 - }, - "name" : "application.issues.type_1", - "background" : true + "keys": { + "application.issues.key": 1 + } }, { - "v" : 2.0, - "key" : { - "application.issues.key" : 1.0 - }, - "name" : "application.issues.key_1", - "background" : true + "keys": { + "application.issues.accountId": 1 + } }, { - "v" : 2.0, - "key" : { - "application.issues.accountId" : 1.0 - }, - "name" : "application.issues.accountId_1", - "background" : true + "keys": { + "applicationMetadata.accountId": 1, + "applicationMetadata.runtime": 1, + "applicationMetadata.name": 1, + "applicationMetadata.namespace": 1, + "application.issues.key": 1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.accountId" : 1.0, - "applicationMetadata.runtime" : 1.0, - "applicationMetadata.name" : 1.0, - "applicationMetadata.namespace" : 1.0, - "application.issues.key" : 1.0 - }, - "name" : "applicationMetadata.accountId_1_applicationMetadata.runtime_1_applicationMetadata.name_1_applicationMetadata.namespace_1_application.issues.key_1", - "background" : true + "keys": { + "applicationMetadata.accountId": 1, + "applicationMetadata.runtime": 1, + "applicationMetadata.name": 1, + "applicationMetadata.namespace": 1, + "application.prs.key": 1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.accountId" : 1.0, - "applicationMetadata.runtime" : 1.0, - "applicationMetadata.name" : 1.0, - "applicationMetadata.namespace" : 1.0, - "application.prs.key" : 1.0 - }, - "name" : "applicationMetadata.accountId_1_applicationMetadata.runtime_1_applicationMetadata.name_1_applicationMetadata.namespace_1_application.prs.key_1", - "background" : true + "keys": { + "applicationMetadata.accountId": 1, + "applicationMetadata.runtime": 1, + "applicationMetadata.name": 1, + "applicationMetadata.namespace": 1, + "application.committers.userName": 1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.accountId" : 1.0, - "applicationMetadata.runtime" : 1.0, - "applicationMetadata.name" : 1.0, - "applicationMetadata.namespace" : 1.0, - "application.committers.userName" : 1.0 - }, - "name" : "applicationMetadata.accountId_1_applicationMetadata.runtime_1_applicationMetadata.name_1_applicationMetadata.namespace_1_application.committers.userName_1", - "background" : true - }, - { - "v" : 2.0, - "key" : { - "applicationMetadata.accountId" : 1.0, - "applicationMetadata.runtime" : 1.0, - "applicationMetadata.name" : 1.0, - "applicationMetadata.namespace" : 1.0, - "applicationMetadata.group" : 1.0, - "applicationMetadata.version" : 1.0, - "applicationMetadata.kind" : 1.0, - "historyId" : -1.0 - }, - "name" : "applicationMetadata.accountId_1_applicationMetadata.runtime_1_applicationMetadata.name_1_applicationMetadata.namespace_1_applicationMetadata.group_1_applicationMetadata.version_1_applicationMetadata.kind_1_historyId_-1", - "background" : true, - "unique" : true - }, - { - "v" : 2.0, - "key" : { - "applicationMetadata.accountId" : 1.0, - "applicationMetadata.runtime" : 1.0, - "applicationMetadata.name" : 1.0, - "applicationMetadata.namespace" : 1.0, - "applicationMetadata.group" : 1.0, - "applicationMetadata.version" : 1.0, - "reportedToJira" : 1.0, - "historyId" : 1.0, - "application.status.syncStartedAt" : 1.0 + "keys": { + "applicationMetadata.accountId": 1, + "applicationMetadata.runtime": 1, + "applicationMetadata.name": 1, + "applicationMetadata.namespace": 1, + "applicationMetadata.group": 1, + "applicationMetadata.version": 1, + "applicationMetadata.kind": 1, + "historyId": -1 }, - "name" : "applicationMetadata.accountId_1_applicationMetadata.runtime_1_applicationMetadata.name_1_applicationMetadata.namespace_1_applicationMetadata.group_1_applicationMetadata.version_1_reportedToJira_1_historyId_1_application.status.syncStartedAt_1", - "background" : true + "options": { + "unique": true + } }, { - "v" : 2.0, - "key" : { - "fromState.services.revision" : 1, - "fromState.services.name" : 1, - "applicationMetadata.accountId" : 1 - }, - "name" : "fromState.services.revision_1_fromState.services.name_1_applicationMetadata.accountId_1" + "keys": { + "applicationMetadata.accountId": 1, + "applicationMetadata.runtime": 1, + "applicationMetadata.name": 1, + "applicationMetadata.namespace": 1, + "applicationMetadata.group": 1, + "applicationMetadata.version": 1, + "reportedToJira": 1, + "historyId": 1, + "application.status.syncStartedAt": 1 + } }, { - "v" : 2.0, - "key" : { - "syncOperationRevision" : 1, - "applicationMetadata.name" : 1, - "applicationMetadata.accountId" : 1, - "historyId" : -1 - }, - "name" : "syncOperationRevision_1_applicationMetadata.name_1_applicationMetadata.accountId_1_historyId_-1" + "keys": { + "fromState.services.revision": 1, + "fromState.services.name": 1, + "applicationMetadata.accountId": 1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.name" : 1, - "applicationMetadata.accountId" : 1, - "historyId" : -1 - }, - "name" : "applicationMetadata.name_1_applicationMetadata.accountId_1_historyId_-1" + "keys": { + "syncOperationRevision": 1, + "applicationMetadata.name": 1, + "applicationMetadata.accountId": 1, + "historyId": -1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.name" : 1, - "applicationMetadata.accountId" : 1, - "application.status.healthStatus" : 1 - }, - "name" : "applicationMetadata.name_1_applicationMetadata.accountId_1_application.status.healthStatus_1" + "keys": { + "applicationMetadata.name": 1, + "applicationMetadata.accountId": 1, + "historyId": -1 + } }, { - "v" : 2.0, - "key" : { - "applicationMetadata.name" : 1, - "applicationMetadata.accountId" : 1, - "current" : 1 - }, - "name" : "applicationMetadata.name_1_applicationMetadata.accountId_1_current_1" + "keys": { + "applicationMetadata.name": 1, + "applicationMetadata.accountId": 1, + "application.status.healthStatus": 1 + } }, { - "v" : 2.0, - "key" : { - "application.status.revision" : 1, - "applicationMetadata.name" : 1, - "applicationMetadata.accountId" : 1 - }, - "name" : "application.status.revision_1_applicationMetadata.name_1_applicationMetadata.accountId_1" + "keys": { + "applicationMetadata.name": 1, + "applicationMetadata.accountId": 1, + "current": 1 + } + }, + { + "keys": { + "application.status.revision": 1, + "applicationMetadata.name": 1, + "applicationMetadata.accountId": 1 + } } -] +] \ No newline at end of file diff --git a/indexes/read-models/rollouts.json b/indexes/read-models/rollouts.json index 7d4519f14..0bb53806c 100644 --- a/indexes/read-models/rollouts.json +++ b/indexes/read-models/rollouts.json @@ -1,393 +1,374 @@ [ { - "v" : 2.0, - "key" : { - "_id" : 1.0 + "keys": { + "__passiveReferencedBy.name": 1 }, - "name" : "_id_" - }, - { - "v" : 2.0, - "key" : { - "__passiveReferencedBy.name" : 1.0 - }, - "name" : "__passiveReferencedBy.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__passiveReferencedBy.name" : 1.0, - "__passiveReferencedBy.kind" : 1.0, - "__passiveReferencedBy.namespace" : 1.0, - "__passiveReferencedBy.group" : 1.0, - "__passiveReferencedBy.version" : 1.0 + "keys": { + "__passiveReferencedBy.name": 1, + "__passiveReferencedBy.kind": 1, + "__passiveReferencedBy.namespace": 1, + "__passiveReferencedBy.group": 1, + "__passiveReferencedBy.version": 1 }, - "name" : "__passiveReferencedBy.name_1___passiveReferencedBy.kind_1___passiveReferencedBy.namespace_1___passiveReferencedBy.group_1___passiveReferencedBy.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__passiveReferences.name" : 1.0 + "keys": { + "__passiveReferences.name": 1 }, - "name" : "__passiveReferences.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__passiveReferences.name" : 1.0, - "__passiveReferences.kind" : 1.0, - "__passiveReferences.namespace" : 1.0, - "__passiveReferences.group" : 1.0, - "__passiveReferences.version" : 1.0 + "keys": { + "__passiveReferences.name": 1, + "__passiveReferences.kind": 1, + "__passiveReferences.namespace": 1, + "__passiveReferences.group": 1, + "__passiveReferences.version": 1 }, - "name" : "__passiveReferences.name_1___passiveReferences.kind_1___passiveReferences.namespace_1___passiveReferences.group_1___passiveReferences.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferencedBy.name" : 1.0 + "keys": { + "__inferredReferencedBy.name": 1 }, - "name" : "__inferredReferencedBy.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferencedBy.name" : 1.0, - "__inferredReferencedBy.kind" : 1.0, - "__inferredReferencedBy.namespace" : 1.0, - "__inferredReferencedBy.group" : 1.0, - "__inferredReferencedBy.version" : 1.0 + "keys": { + "__inferredReferencedBy.name": 1, + "__inferredReferencedBy.kind": 1, + "__inferredReferencedBy.namespace": 1, + "__inferredReferencedBy.group": 1, + "__inferredReferencedBy.version": 1 }, - "name" : "__inferredReferencedBy.name_1___inferredReferencedBy.kind_1___inferredReferencedBy.namespace_1___inferredReferencedBy.group_1___inferredReferencedBy.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferences.name" : 1.0 + "keys": { + "__inferredReferences.name": 1 }, - "name" : "__inferredReferences.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "__inferredReferences.name" : 1.0, - "__inferredReferences.kind" : 1.0, - "__inferredReferences.namespace" : 1.0, - "__inferredReferences.group" : 1.0, - "__inferredReferences.version" : 1.0 + "keys": { + "__inferredReferences.name": 1, + "__inferredReferences.kind": 1, + "__inferredReferences.namespace": 1, + "__inferredReferences.group": 1, + "__inferredReferences.version": 1 }, - "name" : "__inferredReferences.name_1___inferredReferences.kind_1___inferredReferences.namespace_1___inferredReferences.group_1___inferredReferences.version_1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "updatedAt" : 1.0 + "keys": { + "updatedAt": 1 }, - "name" : "updatedAt_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "projects" : 1.0 + "keys": { + "projects": 1 }, - "name" : "projects_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.name" : 1.0 + "keys": { + "metadata.name": 1 }, - "name" : "metadata.name_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.labels" : 1.0 + "keys": { + "metadata.labels": 1 }, - "name" : "metadata.labels_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "source.syncStartedAt" : 1.0 + "keys": { + "source.syncStartedAt": 1 }, - "name" : "source.syncStartedAt_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "source.gitSource" : 1.0 + "keys": { + "source.gitSource": 1 }, - "name" : "source.gitSource_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.accountId" : 1.0, - "metadata.runtime" : 1.0, - "metadata.cluster" : 1.0, - "metadata.namespace" : 1.0, - "metadata.group" : 1.0, - "metadata.version" : 1.0, - "metadata.kind" : 1.0, - "metadata.name" : 1.0, - "metadata.revision" : 1.0, - "metadata.uid" : 1.0, - "metadata.labels.app\\u002ekubernetes\\u002eio/instance" : 1.0 + "keys": { + "metadata.accountId": 1, + "metadata.runtime": 1, + "metadata.cluster": 1, + "metadata.namespace": 1, + "metadata.group": 1, + "metadata.version": 1, + "metadata.kind": 1, + "metadata.name": 1, + "metadata.revision": 1, + "metadata.uid": 1, + "metadata.labels.app\\u002ekubernetes\\u002eio/instance": 1 }, - "name" : "metadata.accountId_1_metadata.runtime_1_metadata.cluster_1_metadata.namespace_1_metadata.group_1_metadata.version_1_metadata.kind_1_metadata.name_1_metadata.revision_1_metadata.uid_1_metadata.labels.app\\u002ekubernetes\\u002eio/instance_1", - "unique" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "unique": true, + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "source.gitSourceUID" : 1.0 + "keys": { + "source.gitSourceUID": 1 }, - "name" : "source.gitSourceUID_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "source.gitSourceNamespace" : 1.0 + "keys": { + "source.gitSourceNamespace": 1 }, - "name" : "source.gitSourceNamespace_1", - "background" : true, - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } }, { - "v" : 2.0, - "key" : { - "metadata.appName" : 1, - "metadata.accountId" : 1, - "metadata.runtime" : 1, - "_id" : -1 + "keys": { + "metadata.appName": 1, + "metadata.accountId": 1, + "metadata.runtime": 1, + "_id": -1 }, - "name" : "metadata.appName_1_metadata.accountId_1_metadata.runtime_1__id_-1", - "collation" : { - "locale" : "en_US", - "caseLevel" : false, - "caseFirst" : "off", - "strength" : 1.0, - "numericOrdering" : false, - "alternate" : "non-ignorable", - "maxVariable" : "punct", - "normalization" : false, - "backwards" : false, - "version" : "57.1" + "options": { + "collation": { + "locale": "en_US", + "caseLevel": false, + "caseFirst": "off", + "strength": 1, + "numericOrdering": false, + "alternate": "non-ignorable", + "maxVariable": "punct", + "normalization": false, + "backwards": false, + "version": "57.1" + } } } -] +] \ No newline at end of file