Skip to content

Commit 3cc0089

Browse files
committed
adapt sonarqube config for new sonarqube pipeline changes
1 parent c1054e6 commit 3cc0089

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

configuration-sample/ods-core.env.sample

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ SONARQUBE_DB_MEMORY_LIMIT=512Mi
174174
SONARQUBE_DB_CAPACITY=2Gi
175175
SONARQUBE_DB_BACKUP_CAPACITY=1Gi
176176

177+
# SonarQube scan configuration
178+
SONAR_SCAN_ENABLED=true
179+
SONAR_SCAN_EXCLUSIONS=
180+
SONAR_SCAN_NEXUS_REPOSITORY=leva-documentation
181+
SONAR_SCAN_ALERT_EMAILS=
182+
177183
#########
178184
# Jira #
179185
#########

sonarqube/chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.1.1
18+
version: 1.1.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
kind: ConfigMap
2+
metadata:
3+
labels:
4+
app: {{ .Values.global.appName }}-scan
5+
name: {{ .Values.global.appName }}-scan
6+
apiVersion: v1
7+
data:
8+
alertEmails: {{ .Values.scan.sonaralertEmails }}
9+
enabled: {{ .Values.scan.sonarEnabled }}
10+
exclusions: {{ .Values.scan.sonarExclusions }}
11+
nexusRepository: {{ .Values.scan.sonarNexusRepository }}

sonarqube/chart/values.yaml.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ buildConfig:
4646
cpuLimit: 1
4747
memRequest: 1Gi
4848
memLimit: 2Gi
49+
scan:
50+
sonarEnabled: $SONAR_SCAN_ENABLED
51+
sonarExclusions: $SONAR_SCAN_EXCLUSIONS
52+
sonarNexusRepository: $SONAR_SCAN_NEXUS_REPOSITORY
53+
sonaralertEmails: $SONAR_SCAN_ALERT_EMAILS

0 commit comments

Comments
 (0)