Skip to content

Commit e633aba

Browse files
onprem: 2.8.1 (#71)
1 parent 0b668b0 commit e633aba

File tree

4 files changed

+70
-3
lines changed

4 files changed

+70
-3
lines changed

codefresh/Chart.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: Helm Chart for Codefresh On-Prem
33
name: codefresh
4-
version: 2.8.0
4+
version: 2.8.1
55
keywords:
66
- codefresh
77
home: https://codefresh.io/
@@ -19,7 +19,9 @@ annotations:
1919
# supported kinds are added, changed, deprecated, removed, fixed and security.
2020
artifacthub.io/changes: |
2121
- kind: added
22-
description: "Documentation about index management in MongoDB"
22+
description: "Documentation about external MongoDB Atlas"
23+
- kind: fixed
24+
description: "Fix postgresql seed job"
2325
dependencies:
2426
- name: cf-common
2527
repository: oci://quay.io/codefresh/charts

codefresh/README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Codefresh On-Premises
22

3-
![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)
3+
![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)
44

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

@@ -227,6 +227,37 @@ However, you might need to use external services like [MongoDB Atlas Database](h
227227

228228
#### External MongoDB
229229

230+
> ⚠️ **Important!** If you use MongoDB Atlas, you must create the following databases in advance before installing Codefresh:
231+
232+
```console
233+
archive
234+
audit
235+
charts-manager
236+
cluster-providers
237+
codefresh
238+
context-manager
239+
gitops-dashboard-manager
240+
k8s-monitor
241+
pipeline-manager
242+
platform-analytics-postgres
243+
read-models
244+
runtime-environment-manager
245+
onboarding-status
246+
payments
247+
```
248+
249+
> You alse need to create a database user with `Write` permissions to ALL databases. <br>
250+
> Then, provide the user credentials in the chart values at <br>
251+
`.Values.global.mongodbUser/mongodbRootUserSecretKeyRef` <br>
252+
`.Values.global.mongodbPassword/mongodbRootPasswordSecretKeyRef` <br>
253+
`.Values.seed.mongoSeedJob.mongodbRootUser/mongodbRootUserSecretKeyRef` <br>
254+
`.Values.seed.mongoSeedJob.mongodbRootPassword/mongodbRootPasswordSecretKeyRef` <br>
255+
> Ref: <br>
256+
> [Create Database in Atlas](https://www.mongodb.com/docs/atlas/atlas-ui/databases/#create-a-database) <br>
257+
> [Create Users in Atlas](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#configure-database-users)
258+
259+
`values.yaml` for external MongoDB:
260+
230261
```yaml
231262
seed:
232263
mongoSeedJob:

codefresh/README.md.gotmpl

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,38 @@ However, you might need to use external services like [MongoDB Atlas Database](h
228228

229229
#### External MongoDB
230230

231+
> ⚠️ **Important!** If you use MongoDB Atlas, you must create the following databases in advance before installing Codefresh:
232+
233+
```console
234+
archive
235+
audit
236+
charts-manager
237+
cluster-providers
238+
codefresh
239+
context-manager
240+
gitops-dashboard-manager
241+
k8s-monitor
242+
pipeline-manager
243+
platform-analytics-postgres
244+
read-models
245+
runtime-environment-manager
246+
onboarding-status
247+
payments
248+
```
249+
250+
> You alse need to create a database user with `Write` permissions to ALL databases. <br>
251+
> Then, provide the user credentials in the chart values at <br>
252+
`.Values.global.mongodbUser/mongodbRootUserSecretKeyRef` <br>
253+
`.Values.global.mongodbPassword/mongodbRootPasswordSecretKeyRef` <br>
254+
`.Values.seed.mongoSeedJob.mongodbRootUser/mongodbRootUserSecretKeyRef` <br>
255+
`.Values.seed.mongoSeedJob.mongodbRootPassword/mongodbRootPasswordSecretKeyRef` <br>
256+
> Ref: <br>
257+
> [Create Database in Atlas](https://www.mongodb.com/docs/atlas/atlas-ui/databases/#create-a-database) <br>
258+
> [Create Users in Atlas](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#configure-database-users)
259+
260+
261+
`values.yaml` for external MongoDB:
262+
231263
```yaml
232264
seed:
233265
mongoSeedJob:

codefresh/files/postgresSeedJobScript.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
DEBUG="${DEBUG:-false}"
44

5+
56
set -euo pipefail
67

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

4951
if [[ "${POSTGRES_SEED_USER}" != "${POSTGRES_USER}" ]]; then
5052
createUser

0 commit comments

Comments
 (0)