Skip to content

Commit

Permalink
use config map to set database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Sep 2, 2024
1 parent 63717c7 commit 14b401e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sonarqube/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.0
version: 1.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 4 additions & 1 deletion sonarqube/chart/templates/dc-sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ spec:
- name: SONAR_SEARCH_JAVAADDITIONALOPTS
value: '-Dlog4j2.formatMsgNoLookups=true'
- name: SONARQUBE_JDBC_URL
value: 'jdbc:postgresql://{{ .Values.global.appName }}-postgresql:5432/sonarqube'
valueFrom:
configMapKeyRef:
name: {{ .Values.global.appName }}
key: database-jdbc-url
- name: SONAR_FORCEAUTHENTICATION
value: 'true'
- name: SONAR_AUTH_SAML_ENABLED
Expand Down

0 comments on commit 14b401e

Please sign in to comment.