Skip to content

onprem: 2.8.1 #71

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 13 commits into from
Jun 5, 2025
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
6 changes: 4 additions & 2 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.8.0
version: 2.8.1
keywords:
- codefresh
home: https://codefresh.io/
Expand All @@ -19,7 +19,9 @@ annotations:
# supported kinds are added, changed, deprecated, removed, fixed and security.
artifacthub.io/changes: |
- kind: added
description: "Documentation about index management in MongoDB"
description: "Documentation about external MongoDB Atlas"
- kind: fixed
description: "Fix postgresql seed job"
dependencies:
- name: cf-common
repository: oci://quay.io/codefresh/charts
Expand Down
33 changes: 32 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.8.0](https://img.shields.io/badge/Version-2.8.0-informational?style=flat-square) ![AppVersion: 2.8.0](https://img.shields.io/badge/AppVersion-2.8.0-informational?style=flat-square)
![Version: 2.8.1](https://img.shields.io/badge/Version-2.8.1-informational?style=flat-square) ![AppVersion: 2.8.0](https://img.shields.io/badge/AppVersion-2.8.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 @@ -227,6 +227,37 @@ However, you might need to use external services like [MongoDB Atlas Database](h

#### External MongoDB

> ⚠️ **Important!** If you use MongoDB Atlas, you must create the following databases in advance before installing Codefresh:

```console
archive
audit
charts-manager
cluster-providers
codefresh
context-manager
gitops-dashboard-manager
k8s-monitor
pipeline-manager
platform-analytics-postgres
read-models
runtime-environment-manager
onboarding-status
payments
```

> You alse need to create a database user with `Write` permissions to ALL databases. <br>
> Then, provide the user credentials in the chart values at <br>
`.Values.global.mongodbUser/mongodbRootUserSecretKeyRef` <br>
`.Values.global.mongodbPassword/mongodbRootPasswordSecretKeyRef` <br>
`.Values.seed.mongoSeedJob.mongodbRootUser/mongodbRootUserSecretKeyRef` <br>
`.Values.seed.mongoSeedJob.mongodbRootPassword/mongodbRootPasswordSecretKeyRef` <br>
> Ref: <br>
> [Create Database in Atlas](https://www.mongodb.com/docs/atlas/atlas-ui/databases/#create-a-database) <br>
> [Create Users in Atlas](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#configure-database-users)

`values.yaml` for external MongoDB:

```yaml
seed:
mongoSeedJob:
Expand Down
32 changes: 32 additions & 0 deletions codefresh/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,38 @@ However, you might need to use external services like [MongoDB Atlas Database](h

#### External MongoDB

> ⚠️ **Important!** If you use MongoDB Atlas, you must create the following databases in advance before installing Codefresh:

```console
archive
audit
charts-manager
cluster-providers
codefresh
context-manager
gitops-dashboard-manager
k8s-monitor
pipeline-manager
platform-analytics-postgres
read-models
runtime-environment-manager
onboarding-status
payments
```

> You alse need to create a database user with `Write` permissions to ALL databases. <br>
> Then, provide the user credentials in the chart values at <br>
`.Values.global.mongodbUser/mongodbRootUserSecretKeyRef` <br>
`.Values.global.mongodbPassword/mongodbRootPasswordSecretKeyRef` <br>
`.Values.seed.mongoSeedJob.mongodbRootUser/mongodbRootUserSecretKeyRef` <br>
`.Values.seed.mongoSeedJob.mongodbRootPassword/mongodbRootPasswordSecretKeyRef` <br>
> Ref: <br>
> [Create Database in Atlas](https://www.mongodb.com/docs/atlas/atlas-ui/databases/#create-a-database) <br>
> [Create Users in Atlas](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#configure-database-users)


`values.yaml` for external MongoDB:

```yaml
seed:
mongoSeedJob:
Expand Down
2 changes: 2 additions & 0 deletions codefresh/files/postgresSeedJobScript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

DEBUG="${DEBUG:-false}"


set -euo pipefail

if [[ $DEBUG == "true" ]]; then
Expand Down Expand Up @@ -45,6 +46,7 @@ function runSeed() {
export PGPASSWORD=${POSTGRES_SEED_PASSWORD}
export PGHOST=${POSTGRES_HOSTNAME}
export PGPORT=${POSTGRES_PORT}
export PGDATABASE=postgres # Use the default postgres database

if [[ "${POSTGRES_SEED_USER}" != "${POSTGRES_USER}" ]]; then
createUser
Expand Down