Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Fix DB config
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonywendt committed Oct 31, 2023
1 parent 58c139e commit 8456a62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ The SonarQube Capability expects the database listed below to exist in the clust
#### Database

- A Postgres database is running on port `5432` and accessible to the cluster
- This database can be logged into via the username `sonarqube`
- This database instance has a psql database created named `sonarqubedb`
- The `sonarqube` user has read/write access to above mentioned database
- This database can be logged into via the username configured with the zarf var `SONARQUBE_DB_USERNAME`. Default is `sonarqube`
- This database instance has a psql database created and configured with zarf var `SONARQUBE_DB_NAME`. Default is `sonarqubedb`
- The user has read/write access to above mentioned database
- Create `sonarqube-postgres` service in `sonarqube` namespace that points to the psql database
- Create `sonarqube-postgres` secret in `sonarqube` namespace with the key `password` that contains the password to the `sonarqube` user for the psql database
- Create `sonarqube-postgres` secret in `sonarqube` namespace with the key `password` that contains the password to the user for the psql database

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion sonarqube-flux-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ application:
existingSecret: "sonarqube-postgres"
existingSecretPasswordKey: "password"
postgresqlUsername: ###ZARF_VAR_SONARQUBE_DB_USERNAME###
postgresqlDatabase: "sonarqubedb"
postgresqlDatabase: ###ZARF_VAR_SONARQUBE_DB_NAME###
service:
port: 5432
2 changes: 2 additions & 0 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ variables:
default: ""
- name: SONARQUBE_IDAM_ATTR_GROUP
default: ""
- name: SONARQUBE_DB_NAME
default: "sonarqubedb"
- name: SONARQUBE_DB_USERNAME
default: "sonarqube"

Expand Down

0 comments on commit 8456a62

Please sign in to comment.