Skip to content

onprem: 2.6.1 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codefresh/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ dependencies:
- name: cf-oidc-provider
repository: oci://quay.io/codefresh/charts
version: 0.0.15
digest: sha256:6dfa88dd2f583c13454e0e6d7c4a83ebeadd846f9f18a7ce99e8d6685ecfb1c6
generated: "2024-12-03T16:51:41.402147+03:00"
digest: sha256:b2c2471f1c519f8b06daf9872eb9b64d8a8d61166b0f8a728b032f7cae208a4a
generated: "2024-12-04T11:41:36.404834+03:00"
52 changes: 27 additions & 25 deletions codefresh/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Helm Chart for Codefresh On-Prem
name: codefresh
version: 2.6.0
version: 2.6.1
keywords:
- codefresh
home: https://codefresh.io/
Expand All @@ -15,11 +15,13 @@ appVersion: 2.6.0
annotations:
artifacthub.io/prerelease: "true"
artifacthub.io/alternativeName: "codefresh-onprem"
# artifacthub.io/containsSecurityUpdates: "true"
artifacthub.io/containsSecurityUpdates: "true"
# supported kinds are added, changed, deprecated, removed, fixed and security.
artifacthub.io/changes: |
- kind: security
description: "Misc security updates"
- kind: changed
description: "Initial onprem 2.6 release"
description: "Upate Readme.md in images digests and auto-index creation"
dependencies:
- name: cf-common
repository: oci://quay.io/codefresh/charts
Expand Down Expand Up @@ -93,11 +95,11 @@ dependencies:
repository: oci://quay.io/codefresh/charts
condition: tasker-kubernetes.enabled
- name: context-manager
version: "*"
version: "~2.31.0"
repository: oci://quay.io/codefresh/charts
condition: context-manager.enabled
- name: pipeline-manager
version: "*"
version: "~3.137.0"
repository: oci://quay.io/codefresh/charts
condition: pipeline-manager.enabled
- name: gitops-dashboard-manager
Expand All @@ -106,104 +108,104 @@ dependencies:
condition: gitops-dashboard-manager.enabled
- name: cfapi
alias: cfapi
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi.enabled
- name: cfapi
alias: cfapi-auth
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-auth.enabled
- name: cfapi
alias: cfapi-internal
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-internal.enabled
- name: cfapi
alias: cfapi-ws
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-ws.enabled
- name: cfapi
alias: cfapi-admin
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-admin.enabled
- name: cfapi
alias: cfapi-endpoints
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-endpoints.enabled
- name: cfapi
alias: cfapi-terminators
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-terminators.enabled
- name: cfapi
alias: cfapi-sso-group-synchronizer
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-sso-group-synchronizer.enabled
- name: cfapi
alias: cfapi-buildmanager
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-buildmanager.enabled
- name: cfapi
alias: cfapi-cacheevictmanager
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-cacheevictmanager.enabled
- name: cfapi
alias: cfapi-eventsmanagersubscriptions
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-eventsmanagersubscriptions.enabled
- name: cfapi
alias: cfapi-kubernetesresourcemonitor
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-kubernetesresourcemonitor.enabled
- name: cfapi
alias: cfapi-environments
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-environments.enabled
- name: cfapi
alias: cfapi-gitops-resource-receiver
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-gitops-resource-receiver.enabled
- name: cfapi
alias: cfapi-downloadlogmanager
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-downloadlogmanager.enabled
- name: cfapi
alias: cfapi-teams
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-teams.enabled
- name: cfapi
alias: cfapi-kubernetes-endpoints
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-kubernetes-endpoints.enabled
- name: cfapi
alias: cfapi-test-reporting
version: "*"
version: "~21.268.0"
repository: oci://quay.io/codefresh/charts
condition: cfapi-test-reporting.enabled
- name: cfui
version: "*"
version: "~14.96.0"
repository: oci://quay.io/codefresh/charts
condition: cfui.enabled
- name: k8s-monitor
version: "*"
repository: oci://quay.io/codefresh/charts
condition: k8s-monitor.enabled
- name: runtime-environment-manager
version: "*"
version: "~3.38.0"
repository: oci://quay.io/codefresh/charts
condition: runtime-environment-manager.enabled
- name: cf-broadcaster
Expand Down
57 changes: 56 additions & 1 deletion codefresh/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Codefresh On-Premises

![Version: 2.6.0](https://img.shields.io/badge/Version-2.6.0-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)
![Version: 2.6.1](https://img.shields.io/badge/Version-2.6.1-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)

Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/getting-started/intro-to-codefresh/) to Kubernetes.

Expand Down Expand Up @@ -1928,6 +1928,61 @@ cfapi:

### [What's new in 2.6.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-26)

#### Affected values

In Codefresh On-Prem 2.6.x all Codefresh owner microservices include image digests in the default subchart values.

For example, default values for `cfapi` might look like this:

```yaml
container:
image:
registry: us-docker.pkg.dev/codefresh-enterprise/gcr.io
repository: codefresh/cf-api
tag: 21.268.1
digest: "sha256:bae42f8efc18facc2bf93690fce4ab03ef9607cec4443fada48292d1be12f5f8"
pullPolicy: IfNotPresent
```

this resulting in the following image reference in the pod spec:

```yaml
spec:
containers:
- name: cfapi
image: us-docker.pkg.dev/codefresh-enterprise/gcr.io/codefresh/cf-api:21.268.1@sha256:bae42f8efc18facc2bf93690fce4ab03ef9607cec4443fada48292d1be12f5f8
```

> **Note!** When the `digest` is providerd, the `tag` is ignored! You can omit digest and use tag only like the following `values.yaml` example:

```yaml
cfapi:
container:
image:
tag: 21.268.1
# -- Set empty tag for digest
digest: ""
```

#### Auto-index creation in MongoDB

In Codefresh On-Prem 2.6.x, the `cfapi` can create indexes in MongoDB automatically. This feature is disabled by default. To enable it, set the following environment variable:

> **Note!** Enabling this feature can cause performance degradation during the index creation process.

> **Note!** It is recommended to add indexes during a maintenance window. The indexes list is provided in `codefresh/files/indexes/<MAJOR.MINOR>/<collection_name>.json` files.

```yaml
cfapi:
container:
env:
MONGOOSE_AUTO_INDEX: "true"
```

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/)

## Troubleshooting

### Error: Failed to validate connection to Docker daemon; caused by Error: certificate has expired
Expand Down
56 changes: 56 additions & 0 deletions codefresh/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1936,6 +1936,62 @@ cfapi:

### [What's new in 2.6.x](https://codefresh.io/docs/docs/whats-new/on-prem-release-notes/#on-premises-version-26)

#### Affected values

In Codefresh On-Prem 2.6.x all Codefresh owner microservices include image digests in the default subchart values.

For example, default values for `cfapi` might look like this:

```yaml
container:
image:
registry: us-docker.pkg.dev/codefresh-enterprise/gcr.io
repository: codefresh/cf-api
tag: 21.268.1
digest: "sha256:bae42f8efc18facc2bf93690fce4ab03ef9607cec4443fada48292d1be12f5f8"
pullPolicy: IfNotPresent
```

this resulting in the following image reference in the pod spec:

```yaml
spec:
containers:
- name: cfapi
image: us-docker.pkg.dev/codefresh-enterprise/gcr.io/codefresh/cf-api:21.268.1@sha256:bae42f8efc18facc2bf93690fce4ab03ef9607cec4443fada48292d1be12f5f8
```

> **Note!** When the `digest` is providerd, the `tag` is ignored! You can omit digest and use tag only like the following `values.yaml` example:

```yaml
cfapi:
container:
image:
tag: 21.268.1
# -- Set empty tag for digest
digest: ""
```

#### Auto-index creation in MongoDB

In Codefresh On-Prem 2.6.x, the `cfapi` can create indexes in MongoDB automatically. This feature is disabled by default. To enable it, set the following environment variable:

> **Note!** Enabling this feature can cause performance degradation during the index creation process.

> **Note!** It is recommended to add indexes during a maintenance window. The indexes list is provided in `codefresh/files/indexes/<MAJOR.MINOR>/<collection_name>.json` files.

```yaml
cfapi:
container:
env:
MONGOOSE_AUTO_INDEX: "true"
```

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/)


## Troubleshooting

### Error: Failed to validate connection to Docker daemon; caused by Error: certificate has expired
Expand Down
29 changes: 29 additions & 0 deletions codefresh/files/indexes/2.6/agenttasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
{
"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"
},
{
"v" : 2.0,
"key" : {
"metadata.expireAt" : 1
},
"name" : "metadata.expireAt_1",
"expireAfterSeconds" : 0.0
}
]
Loading