From 9a948dc3ca993ec38d2d5c239af877ff80a8f8a8 Mon Sep 17 00:00:00 2001 From: Vasil Sudakou Date: Wed, 14 May 2025 14:03:43 +0300 Subject: [PATCH 1/8] fix: doc for onprem 2.7 --- _docs/whats-new/on-prem-release-notes.md | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index d037c2757..6aca92cd4 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -17,7 +17,44 @@ For detailed instructions on installing v2.7, visit [ArtifactHub](https://artifa #### Upgrading to v2.7 For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh#to-2-7-0){:target="\_blank"} +#### New indexes +We added a new `feature-store-versioned` collection which requires a couple of indexes for good performance. + +You must create the indexes listed below _**after** upgrading_ to prevent disruption and avoid performance issues. + +##### `createdAt_1` + +`createdAt_1` (db: `codefresh`; collection: `feature-store-versioned`) + +###### Index details + +```json +{ + "createdAt" : 1 +} +``` + +###### Index properties + +```json +{ + "expireAfterSeconds" : 43200 +} +``` + +##### `LDRedisStoreVersion_1__id_-1` + +`LDRedisStoreVersion_1__id_-1` (db: `codefresh`; collection: `feature-store-versioned`) + +###### Index details + +```json +{ + "LDRedisStoreVersion" : 1, + "_id" : -1 +} +``` #### General: Increased limit for audit logs From 4efbe816c0b1fd898a104386c67fbdaef8bbc81d Mon Sep 17 00:00:00 2001 From: NimRegev Date: Wed, 14 May 2025 15:48:08 +0300 Subject: [PATCH 2/8] Update on-prem-release-notes.md Restructured to make it clear --- _docs/whats-new/on-prem-release-notes.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index 6aca92cd4..06b3babd5 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -15,27 +15,25 @@ Welcome to the release notes for our on-premises releases. For detailed instructions on installing v2.7, visit [ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh){:target="\_blank"}. #### Upgrading to v2.7 -For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh#to-2-7-0){:target="\_blank"} - -#### New indexes -We added a new `feature-store-versioned` collection which requires a couple of indexes for good performance. +For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh#to-2-7-0){:target="\_blank"} +**New indexes in 2.7** +We added a new `feature-store-versioned` collection which requires **two new indexes** for good performance. You must create the indexes listed below _**after** upgrading_ to prevent disruption and avoid performance issues. ##### `createdAt_1` `createdAt_1` (db: `codefresh`; collection: `feature-store-versioned`) -###### Index details +* **Index details** ```json { "createdAt" : 1 } ``` - -###### Index properties +* **Index properties** ```json { @@ -47,7 +45,7 @@ You must create the indexes listed below _**after** upgrading_ to prevent disrup `LDRedisStoreVersion_1__id_-1` (db: `codefresh`; collection: `feature-store-versioned`) -###### Index details +* **Index details** ```json { From c1d7a119ce6108691276fe6dc210250d136713e3 Mon Sep 17 00:00:00 2001 From: NimRegev Date: Wed, 14 May 2025 16:07:16 +0300 Subject: [PATCH 3/8] Update on-prem-release-notes.md --- _docs/whats-new/on-prem-release-notes.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index 06b3babd5..217cb98a3 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -9,19 +9,20 @@ Welcome to the release notes for our on-premises releases. ## On-premises version 2.7 -### Features & enhancements +### Installation & Upgrade #### Installing v2.7 For detailed instructions on installing v2.7, visit [ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh){:target="\_blank"}. #### Upgrading to v2.7 - For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh#to-2-7-0){:target="\_blank"} **New indexes in 2.7** We added a new `feature-store-versioned` collection which requires **two new indexes** for good performance. You must create the indexes listed below _**after** upgrading_ to prevent disruption and avoid performance issues. +#### New indexes after upgrade + ##### `createdAt_1` `createdAt_1` (db: `codefresh`; collection: `feature-store-versioned`) @@ -54,6 +55,15 @@ You must create the indexes listed below _**after** upgrading_ to prevent disrup } ``` + +### Features & enhancements + + + + + + + #### General: Increased limit for audit logs Codefresh keeps a log of all actions that happen at all times based on API calls that reach Codefresh. These include UI actions from users, CLI invocations, and any external integration used with Codefresh. From 3a5055e0b3a3da886d223c8a9452725d8047c147 Mon Sep 17 00:00:00 2001 From: NimRegev Date: Wed, 14 May 2025 16:15:23 +0300 Subject: [PATCH 4/8] Update on-prem-release-notes.md --- _docs/whats-new/on-prem-release-notes.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index 217cb98a3..7c9f8c827 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -21,7 +21,8 @@ For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages We added a new `feature-store-versioned` collection which requires **two new indexes** for good performance. You must create the indexes listed below _**after** upgrading_ to prevent disruption and avoid performance issues. -#### New indexes after upgrade +#### New indexes in v2.7 +You must _**create the indexes after upgrading** to prevent disruption and avoid performance issues. ##### `createdAt_1` @@ -59,11 +60,6 @@ You must create the indexes listed below _**after** upgrading_ to prevent disrup ### Features & enhancements - - - - - #### General: Increased limit for audit logs Codefresh keeps a log of all actions that happen at all times based on API calls that reach Codefresh. These include UI actions from users, CLI invocations, and any external integration used with Codefresh. From 0153e638d78a74644a3efbb5aa9a6a517a1aafc3 Mon Sep 17 00:00:00 2001 From: NimRegev Date: Wed, 14 May 2025 16:22:23 +0300 Subject: [PATCH 5/8] Update on-prem-release-notes.md --- _docs/whats-new/on-prem-release-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index 7c9f8c827..8b4e6766e 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -17,7 +17,7 @@ For detailed instructions on installing v2.7, visit [ArtifactHub](https://artifa #### Upgrading to v2.7 For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh#to-2-7-0){:target="\_blank"} -**New indexes in 2.7** +**New indexes** We added a new `feature-store-versioned` collection which requires **two new indexes** for good performance. You must create the indexes listed below _**after** upgrading_ to prevent disruption and avoid performance issues. From 477c3a19ab1d62fc4c1d5fad1d5faabbb858f8b5 Mon Sep 17 00:00:00 2001 From: Vasil Sudakou Date: Thu, 15 May 2025 11:21:57 +0300 Subject: [PATCH 6/8] fix: doc for onprem 2.7 --- _docs/whats-new/on-prem-release-notes.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index 8b4e6766e..985038c5c 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -19,12 +19,13 @@ For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages **New indexes** We added a new `feature-store-versioned` collection which requires **two new indexes** for good performance. -You must create the indexes listed below _**after** upgrading_ to prevent disruption and avoid performance issues. +You must create the indexes listed below _**right after** upgrading_ to prevent disruption and avoid performance issues. #### New indexes in v2.7 -You must _**create the indexes after upgrading** to prevent disruption and avoid performance issues. -##### `createdAt_1` +You must create the indexes listed below **right after upgrading** to prevent disruption and avoid performance issues. + +##### createdAt_1 `createdAt_1` (db: `codefresh`; collection: `feature-store-versioned`) @@ -43,7 +44,7 @@ You must _**create the indexes after upgrading** to prevent disruption and avoid } ``` -##### `LDRedisStoreVersion_1__id_-1` +##### LDRedisStoreVersion_1__id_-1 `LDRedisStoreVersion_1__id_-1` (db: `codefresh`; collection: `feature-store-versioned`) From f49472f48b0bbbadcee9fdc9ec8944e7434d5378 Mon Sep 17 00:00:00 2001 From: Vasil Sudakou Date: Mon, 19 May 2025 16:41:26 +0300 Subject: [PATCH 7/8] fix: doc about indexes --- _docs/whats-new/on-prem-release-notes.md | 70 ++++++++++++++---------- 1 file changed, 40 insertions(+), 30 deletions(-) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index 985038c5c..1d8faf54a 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -18,45 +18,55 @@ For detailed instructions on installing v2.7, visit [ArtifactHub](https://artifa For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh#to-2-7-0){:target="\_blank"} **New indexes** -We added a new `feature-store-versioned` collection which requires **two new indexes** for good performance. -You must create the indexes listed below _**right after** upgrading_ to prevent disruption and avoid performance issues. +We added a new `feature-store-versioned` collection which requires **two new indexes** for proper operation. +You must create the indexes listed below _**before or right after** the upgrade_ to prevent disruption and avoid performance issues. #### New indexes in v2.7 -You must create the indexes listed below **right after upgrading** to prevent disruption and avoid performance issues. +You must create the indexes listed below **before or right after the upgrade** to prevent disruption and avoid performance issues. -##### createdAt_1 +{{site.data.callout.callout_warning}} +**WARNING** -`createdAt_1` (db: `codefresh`; collection: `feature-store-versioned`) +If you create indexes before the upgrade, please, create **codefresh.feature-store-versioned** collection in advance. -* **Index details** +E.g., using mongo shell script below: -```json -{ - "createdAt" : 1 -} +```js +use codefresh; +db.createCollection('feature-store-versioned'); ``` -* **Index properties** +{{site.data.callout.end}} -```json -{ - "expireAfterSeconds" : 43200 -} -``` -##### LDRedisStoreVersion_1__id_-1 +##### codefresh.feature-store-versioned + +DB: `codefresh` -`LDRedisStoreVersion_1__id_-1` (db: `codefresh`; collection: `feature-store-versioned`) +Collection: `feature-store-versioned` -* **Index details** +Required indexes: ```json +// Index keys: { - "LDRedisStoreVersion" : 1, - "_id" : -1 + "createdAt": 1 +}, +// Index options: +{ + "expireAfterSeconds": 43200 } ``` +```json +// Index keys: +{ + "LDRedisStoreVersion": 1, + "_id": -1 +}, +// Index options: +{} +``` ### Features & enhancements @@ -213,25 +223,25 @@ The index list is in `codefresh/files/indexes//.js
#### New index for image-binaries + We have introduced a new index for the `image-binaries` collection. If you are upgrading to this version, you must create the index _before upgrading_ to prevent disruption and avoid performance issues. -##### Create index +##### codefresh.image-binaries -`accountId_1_imageName_1` (db: `codefresh`; collection: `image-binaries`) +DB: `codefresh` -##### Index details +Collection: `image-binaries` + +Required indexes: ```json +// Index keys: { "accountId": 1, "imageName": 1 -} -``` - -##### Index properties - -```json +}, +// Index options: { "collation": { "locale": "en_US", From 79f27a3319de479b27018ca848f5aa3f337a2065 Mon Sep 17 00:00:00 2001 From: Vasil Sudakou Date: Tue, 20 May 2025 15:53:12 +0300 Subject: [PATCH 8/8] fix: doc about indexes --- _docs/whats-new/on-prem-release-notes.md | 103 ----------------------- 1 file changed, 103 deletions(-) diff --git a/_docs/whats-new/on-prem-release-notes.md b/_docs/whats-new/on-prem-release-notes.md index 1d8faf54a..5ef4cc3d1 100644 --- a/_docs/whats-new/on-prem-release-notes.md +++ b/_docs/whats-new/on-prem-release-notes.md @@ -17,60 +17,8 @@ For detailed instructions on installing v2.7, visit [ArtifactHub](https://artifa #### Upgrading to v2.7 For details, see [Upgrade to 2.7 in ArtifactHub](https://artifacthub.io/packages/helm/codefresh-onprem/codefresh#to-2-7-0){:target="\_blank"} -**New indexes** -We added a new `feature-store-versioned` collection which requires **two new indexes** for proper operation. -You must create the indexes listed below _**before or right after** the upgrade_ to prevent disruption and avoid performance issues. - -#### New indexes in v2.7 - -You must create the indexes listed below **before or right after the upgrade** to prevent disruption and avoid performance issues. - -{{site.data.callout.callout_warning}} -**WARNING** - -If you create indexes before the upgrade, please, create **codefresh.feature-store-versioned** collection in advance. - -E.g., using mongo shell script below: - -```js -use codefresh; -db.createCollection('feature-store-versioned'); -``` -{{site.data.callout.end}} - - -##### codefresh.feature-store-versioned - -DB: `codefresh` - -Collection: `feature-store-versioned` - -Required indexes: - -```json -// Index keys: -{ - "createdAt": 1 -}, -// Index options: -{ - "expireAfterSeconds": 43200 -} -``` - -```json -// Index keys: -{ - "LDRedisStoreVersion": 1, - "_id": -1 -}, -// Index options: -{} -``` - ### Features & enhancements - #### General: Increased limit for audit logs Codefresh keeps a log of all actions that happen at all times based on API calls that reach Codefresh. These include UI actions from users, CLI invocations, and any external integration used with Codefresh. @@ -201,57 +149,6 @@ For details, see [Upgrade to 2.6 in ArtifactHub](https://artifacthub.io/packages #### GitHub repo We're excited to announce that the on-prem release is now available on a [public GitHub repository](https://github.com/codefresh-io/codefresh-onprem-helm/tree/release-2.6/codefresh){:target="\_blank"}, in addition to ArtifactHub, providing easier access and transparency for our users. - -
- -#### Enable auto-index creation in MongoDB -From v2.6, the `cfapi` service can automatically create indexes in MongoDB. - -This feature is disabled by default. To enable it, set the `MONGOOSE_AUTO_INDEX` environment variable to `true` as shown below. - -```yaml -cfapi: - container: - env: - MONGOOSE_AUTO_INDEX: "true" -``` - -The index list is in `codefresh/files/indexes//.json` files. - -**Important**: We recommend enabling this feature during a maintenance window, as creating indexes can temporarily degrade database performance. - -
- -#### New index for image-binaries - -We have introduced a new index for the `image-binaries` collection. -If you are upgrading to this version, you must create the index _before upgrading_ to prevent disruption and avoid performance issues. - -##### codefresh.image-binaries - -DB: `codefresh` - -Collection: `image-binaries` - -Required indexes: - -```json -// Index keys: -{ - "accountId": 1, - "imageName": 1 -}, -// Index options: -{ - "collation": { - "locale": "en_US", - "strength": 1 - } -} -``` - -
- #### General: Annotate image by name via CLI Now using the CLI, you can annotate your images also by their names, instead of only the image SHA.