Skip to content

Commit 5f27d5a

Browse files
SONAR-25616 Automated testing of the support fo Istio
1 parent 7b0c1c7 commit 5f27d5a

File tree

68 files changed

+162
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+162
-2
lines changed

.cirrus/tasks_templates.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ chart_testing_on_kind: &CHART_TESTING_ON_KIND_TEMPLATE
9393
- kind create cluster
9494
- kubectl cluster-info --context kind-kind
9595
- kubectl get nodes
96+
- helm repo add istio https://istio-release.storage.googleapis.com/charts
97+
- kubectl create namespace istio-system --dry-run=client -o yaml | kubectl apply -f -
98+
- helm upgrade -i istio-base istio/base -n istio-system --set defaultRevision=default --set global.proxy.holdApplicationUntilProxyStarts=true --wait
99+
- helm upgrade -i istiod istio/istiod --set global.proxy.holdApplicationUntilProxyStarts=true -n istio-system --wait
96100
- kubectl create namespace test --dry-run=client -o yaml | kubectl apply -f -
101+
- kubectl label namespace test istio-injection=enabled
97102
- kubectl create secret docker-registry pullsecret --namespace test --docker-username=${DOCKER_USERNAME} --docker-password=${DOCKER_PASSWORD} --dry-run=client -o yaml | kubectl apply -f -
98103
artifacthub_lint_script:
99104
- ah lint

charts/sonarqube-dce/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All changes to this chart will be documented in this file.
88
* Added validation to ensure that either the `applicationNodes.jwtSecret` or `applicationNodes.jwtExistingSecret` value is set
99
* Support the deployment with Istio
1010

11+
## [2025.3.1]
12+
* Update Chart's version to 2025.3.1
13+
* Upgrade SonarQube Server to 2025.3.1
14+
1115
## [2025.3.0]
1216
* Update Chart's version to 2025.3.0
1317
* Normalizes the extension for all templates

charts/sonarqube-dce/ci/cirrus-values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
# decreased replica count for cirrus CI
33

44
searchNodes:
5-
replicaCount: 1
5+
replicaCount: 3
66
image:
77
repository: "sonarsource/sonarqube"
88
tag: "2025.3.0-datacenter-search"
99
pullSecrets:
1010
- name: pullsecret
1111

1212
ApplicationNodes:
13-
replicaCount: 1
13+
replicaCount: 2
1414
jwtSecret: "mnGBJtmwRbIREqy3vSw6Cinoi2WEom9JH+iw/tXOJX4="
1515
image:
1616
repository: "sonarsource/sonarqube"
1717
tag: "2025.3.0-datacenter-app"
1818
pullSecrets:
1919
- name: pullsecret
20+
webPort: 4023
21+
cePort: 4024
2022

2123
postgresql:
2224
securityContext:

charts/sonarqube-dce/templates/tests/sonarqube-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
name: "{{ .Release.Name }}-ui-test"
88
annotations:
99
"helm.sh/hook": test-success
10+
# Disable Istio sidecar injection for this test pod
11+
"sidecar.istio.io/inject": "false"
1012
labels:
1113
app: {{ template "sonarqube.name" . }}
1214
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}

charts/sonarqube/templates/change-admin-password-hook.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
metadata:
1919
name: {{ template "sonarqube.fullname" . }}-change-admin-password-hook
2020
labels: {{- include "sonarqube.labels" . | nindent 8 }}
21+
annotations:
22+
# Disable Istio sidecar injection for this hook pod
23+
"sidecar.istio.io/inject": "false"
2124
spec:
2225
restartPolicy: OnFailure
2326
{{- if or .Values.image.pullSecrets .Values.image.pullSecret }}

charts/sonarqube/templates/tests/sonarqube-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ metadata:
55
name: "{{ .Release.Name }}-ui-test"
66
annotations:
77
"helm.sh/hook": test-success
8+
# Disable Istio sidecar injection for this test pod
9+
"sidecar.istio.io/inject": "false"
810
labels: {{- include "sonarqube.labels" . | nindent 4 }}
911
spec:
1012
automountServiceAccountToken: false

tests/unit-compatibility-test/fixtures/sonarqube-dce/application-static-hazelcast-values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ metadata:
10331033
name: "application-static-hazelcast-values.yaml-ui-test"
10341034
annotations:
10351035
"helm.sh/hook": test-success
1036+
# Disable Istio sidecar injection for this test pod
1037+
"sidecar.istio.io/inject": "false"
10361038
labels:
10371039
app: sonarqube-dce
10381040
chart: sonarqube-dce-2025.4.0

tests/unit-compatibility-test/fixtures/sonarqube-dce/application-values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,8 @@ metadata:
10251025
name: "application-values.yaml-ui-test"
10261026
annotations:
10271027
"helm.sh/hook": test-success
1028+
# Disable Istio sidecar injection for this test pod
1029+
"sidecar.istio.io/inject": "false"
10281030
labels:
10291031
app: sonarqube-dce
10301032
chart: sonarqube-dce-2025.4.0

tests/unit-compatibility-test/fixtures/sonarqube-dce/ca-certificates-configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,8 @@ metadata:
10841084
name: "ca-certificates-configmap.yaml-ui-test"
10851085
annotations:
10861086
"helm.sh/hook": test-success
1087+
# Disable Istio sidecar injection for this test pod
1088+
"sidecar.istio.io/inject": "false"
10871089
labels:
10881090
app: sonarqube-dce
10891091
chart: sonarqube-dce-2025.4.0

tests/unit-compatibility-test/fixtures/sonarqube-dce/ca-certificates-secret.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,8 @@ metadata:
10181018
name: "ca-certificates-secret.yaml-ui-test"
10191019
annotations:
10201020
"helm.sh/hook": test-success
1021+
# Disable Istio sidecar injection for this test pod
1022+
"sidecar.istio.io/inject": "false"
10211023
labels:
10221024
app: sonarqube-dce
10231025
chart: sonarqube-dce-2025.4.0

0 commit comments

Comments
 (0)