Skip to content

Commit cec6ae3

Browse files
authored
REL-3426 Release SonarQube 9.9.8
1 parent 05df975 commit cec6ae3

File tree

13 files changed

+127
-50
lines changed

13 files changed

+127
-50
lines changed

.cirrus.star

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
load("github.com/SonarSource/cirrus-modules@v2", "load_features")
1+
load("github.com/SonarSource/cirrus-modules@v3", "load_features")
2+
load("cirrus", "env", "fs", "yaml")
23

34
def main(ctx):
45
return load_features(ctx)

.cirrus.yaml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
env:
2+
### Shared variables
3+
DOCKER_USERNAME: VAULT[development/kv/data/docker/sonardockerrw data.username]
4+
DOCKER_PASSWORD: VAULT[development/kv/data/docker/sonardockerrw data.access_token_rwd]
5+
16
only_on_none_release_draft_template: &ONLY_ON_NONE_RELEASE_DRAFT_TEMPLATE
27
only_if: $CIRRUS_PRERELEASE != "true"
38

@@ -9,7 +14,6 @@ docker_build_container_template: &CONTAINER_TEMPLATE
914
builder_role: cirrus-builder
1015
builder_image: docker-builder-v*
1116
builder_instance_type: t2.small
12-
builder_subnet_id: ${CIRRUS_AWS_SUBNET}
1317
region: eu-central-1
1418
namespace: default
1519
cpu: 1
@@ -23,6 +27,13 @@ container_template: &STD_CONTAINER_TEMPLATE
2327
cpu: 1
2428
memory: 1Gb
2529

30+
vm_instance_template: &VM_TEMPLATE
31+
image: docker-builder-v*
32+
type: t2.xlarge
33+
region: eu-central-1
34+
cpu: 4
35+
memory: 16Gb
36+
2637
clone_script_template: &CLONE_SCRIPT_TEMPLATE
2738
clone_script: |
2839
if [ -z "$CIRRUS_PR" ]; then
@@ -37,29 +48,21 @@ clone_script_template: &CLONE_SCRIPT_TEMPLATE
3748
chart_testing_task:
3849
only_if: $CIRRUS_PRERELEASE != "true" && $CIRRUS_BRANCH != "master"
3950
timeout_in: 30m
40-
eks_container:
41-
<<: *CONTAINER_TEMPLATE
42-
cpu: 2
43-
memory: 4Gb
44-
additional_containers:
45-
- name: dockerdaemon
46-
privileged: true
47-
cpu: 4
48-
memory: 16Gb
49-
image: docker:20-dind
50-
port: 2375
51-
env:
52-
DOCKER_DRIVER: overlay2
53-
DOCKER_TLS_CERTDIR: ""
51+
ec2_instance:
52+
<<: *VM_TEMPLATE
5453
<<: *CLONE_SCRIPT_TEMPLATE
55-
start_kind_background_script:
56-
- export DOCKER_HOST=tcp://localhost:2375
54+
setup_script:
55+
- ./.cirrus/setup_kind_vm.sh
5756
- kind create cluster
58-
wait_for_kind_script:
59-
- secs=3600; endTime=$(( $(date +%s) + secs )); while [[ -n "$(kubectl cluster-info --context kind-kind 2>&1 > /dev/null)" ]] || [ $(date +%s) -gt $endTime ]; do sleep 5; done
57+
- kubectl cluster-info --context kind-kind
58+
- kubectl get nodes
59+
- kubectl create namespace test --dry-run=client -o yaml | kubectl apply -f -
60+
- kubectl create secret docker-registry pullsecret --namespace test --docker-username=${DOCKER_USERNAME} --docker-password=${DOCKER_PASSWORD} --dry-run=client -o yaml | kubectl apply -f -
6061
script:
6162
- ct lint --config test.yaml --all
62-
- ct install --config test.yaml --all
63+
- ct install --namespace test --config test.yaml --all --debug
64+
teardown_script:
65+
- kind delete cluster
6366
artifacthub_lint_script:
6467
- ah lint
6568

.cirrus/setup_kind_vm.sh

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
export DEBIAN_FRONTEND=noninteractive
6+
7+
apt-get update -y
8+
9+
# Install docker
10+
apt-get install -y docker-ce docker-ce-cli containerd.io
11+
systemctl start docker
12+
systemctl enable docker
13+
14+
# Install chart-testing
15+
YAMLLINT_VERSION=1.35.1
16+
YAMALE_VERSION=5.2.1
17+
CHART_TESTING_VERSION=3.11.0
18+
CHART_TESTING_HASHSUM="38914f285ce309f86a876522640a27b57840a435d3480195f0878e104f1e8044"
19+
curl -LO https://github.com/helm/chart-testing/releases/download/v${CHART_TESTING_VERSION}/chart-testing_${CHART_TESTING_VERSION}_linux_amd64.tar.gz
20+
echo "${CHART_TESTING_HASHSUM} chart-testing_${CHART_TESTING_VERSION}_linux_amd64.tar.gz" | sha256sum -c
21+
tar -xf chart-testing_${CHART_TESTING_VERSION}_linux_amd64.tar.gz
22+
chmod +x ./ct
23+
mkdir -p /etc/ct
24+
mv etc/chart_schema.yaml /etc/ct/chart_schema.yaml
25+
mv etc/lintconf.yaml /etc/ct/lintconf.yaml
26+
mv ./ct /usr/bin/ct
27+
rm chart-testing_${CHART_TESTING_VERSION}_linux_amd64.tar.gz
28+
pip install "yamllint==${YAMLLINT_VERSION}"
29+
pip install "yamale==${YAMALE_VERSION}"
30+
31+
# Install kubectl
32+
KUBECTL_VERSION=1.31.0
33+
curl -LO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
34+
curl -LO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256
35+
printf %s " kubectl" >> kubectl.sha256
36+
sha256sum -c kubectl.sha256
37+
chmod +x ./kubectl
38+
mv ./kubectl /usr/bin/kubectl
39+
rm kubectl.sha256
40+
41+
# Install helm
42+
HELM_VERSION=3.16.1
43+
HELM_CHECKSUM="e57e826410269d72be3113333dbfaac0d8dfdd1b0cc4e9cb08bdf97722731ca9"
44+
curl -LO https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz
45+
echo "${HELM_CHECKSUM} helm-v${HELM_VERSION}-linux-amd64.tar.gz" | sha256sum -c
46+
tar -xf helm-v${HELM_VERSION}-linux-amd64.tar.gz
47+
chmod +x ./linux-amd64/helm
48+
mv ./linux-amd64/helm /usr/bin/helm
49+
rm -rf ./linux-amd64
50+
rm helm-v${HELM_VERSION}-linux-amd64.tar.gz
51+
52+
# Install kind
53+
KIND_VERSION=0.24.0
54+
KIND_CHECKSUM="b89aada5a39d620da3fcd16435b7f28d858927dd53f92cbac77686b0588b600d"
55+
curl -LO https://kind.sigs.k8s.io/dl/v${KIND_VERSION}/kind-linux-amd64
56+
echo "${KIND_CHECKSUM} kind-linux-amd64" | sha256sum -c
57+
chmod +x ./kind-linux-amd64
58+
mv ./kind-linux-amd64 /usr/local/bin/kind
59+
60+
# Install artifacthub lint
61+
AH_VERSION=1.19.0
62+
AH_CHECKSUM="0e430493521ce387ca04d79b26646a86f92886dbcceb44985bb71082a9530ca5"
63+
curl -LO https://github.com/artifacthub/hub/releases/download/v${AH_VERSION}/ah_${AH_VERSION}_linux_amd64.tar.gz
64+
echo "${AH_CHECKSUM} ah_${AH_VERSION}_linux_amd64.tar.gz" | sha256sum -c
65+
tar -xf ah_${AH_VERSION}_linux_amd64.tar.gz
66+
chmod +x ./ah
67+
mv ./ah /usr/bin/ah
68+
rm LICENSE
69+
rm -rf ah_${AH_VERSION}_linux_amd64.tar.gz
70+
71+
docker --version
72+
ct version
73+
kubectl version --client
74+
helm version
75+
kind version

charts/sonarqube-dce/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SonarQube Chart Changelog
22
All changes to this chart will be documented in this file.
33

4+
## [7.0.8]
5+
* Update SonarQube to 9.9.8
6+
47
## [7.0.7]
58
* Update SonarQube to 9.9.7
69

charts/sonarqube-dce/Chart.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: sonarqube-dce
33
description: SonarQube offers Code Quality and Code Security analysis for up to 27 languages. Find Bugs, Vulnerabilities, Security Hotspots and Code Smells throughout your workflow.
44
type: application
5-
version: 7.0.7
6-
appVersion: 9.9.7
5+
version: 7.0.8
6+
appVersion: 9.9.8
77
keywords:
88
- coverage
99
- security
@@ -16,8 +16,6 @@ sources:
1616
- https://github.com/SonarSource/sonarqube
1717
kubeVersion: '>= 1.19.0-0'
1818
maintainers:
19-
- name: leo-geoffroy-sonarsource
20-
2119
- name: carminevassallo
2220
2321
- name: jCOTINEAU
@@ -27,7 +25,7 @@ maintainers:
2725
annotations:
2826
artifacthub.io/changes: |
2927
- kind: changed
30-
description: "Update SonarQube to 9.9.7"
28+
description: "Update SonarQube to 9.9.8"
3129
artifacthub.io/links: |
3230
- name: support
3331
url: https://community.sonarsource.com/
@@ -36,9 +34,9 @@ annotations:
3634
artifacthub.io/containsSecurityUpdates: "false"
3735
artifacthub.io/images: |
3836
- name: sonarqube-app
39-
image: sonarqube:9.9.7-datacenter-app
37+
image: sonarqube:9.9.8-datacenter-app
4038
- name: sonarqube-search
41-
image: sonarqube:9.9.7-datacenter-search
39+
image: sonarqube:9.9.8-datacenter-search
4240
dependencies:
4341
- name: postgresql
4442
version: 10.15.0

charts/sonarqube-dce/OWNERS

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
approvers:
2-
- leo-geoffroy-sonarsource
3-
- pierre-guillot-sonarsource
42
- carminevassallo
3+
- davi.koscianski-vidal
54
- jCOTINEAU
65
reviewers:
7-
- leo-geoffroy-sonarsource
8-
- pierre-guillot-sonarsource
96
- carminevassallo
7+
- davi.koscianski-vidal
108
- jCOTINEAU

charts/sonarqube-dce/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Please note that this chart does NOT support SonarQube Community, Developer, and
1414

1515
## Compatibility
1616

17-
Compatible SonarQube Version: `9.9.7`
17+
Compatible SonarQube Version: `9.9.8`
1818

1919
Supported Kubernetes Versions: From `1.23` to `1.26`
2020

@@ -133,7 +133,7 @@ The following table lists the configurable parameters of the SonarQube chart and
133133
| Parameter | Description | Default |
134134
| --------- | ----------- |---------------------------|
135135
| `searchNodes.image.repository` | search image repository | `sonarqube` |
136-
| `searchNodes.image.tag` | search image tag | `9.9.7-datacenter-search` |
136+
| `searchNodes.image.tag` | search image tag | `9.9.8-datacenter-search` |
137137
| `searchNodes.image.pullPolicy` | search image pull policy | `IfNotPresent` |
138138
| `searchNodes.image.pullSecret` | (DEPRECATED) search imagePullSecret to use for private repository | `nil` |
139139
| `searchNodes.image.pullSecrets` | search imagePullSecrets to use for private repository | `nil` |
@@ -176,7 +176,7 @@ The following table lists the configurable parameters of the SonarQube chart and
176176
| Parameter | Description | Default |
177177
| --------- | ----------- |------------------------|
178178
| `ApplicationNodes.image.repository` | app image repository | `sonarqube` |
179-
| `ApplicationNodes.image.tag` | app image tag | `9.9.7-datacenter-app` |
179+
| `ApplicationNodes.image.tag` | app image tag | `9.9.8-datacenter-app` |
180180
| `ApplicationNodes.image.pullPolicy` | app image pull policy | `IfNotPresent` |
181181
| `ApplicationNodes.image.pullSecret` | (DEPRECATED) app imagePullSecret to use for private repository | `nil` |
182182
| `ApplicationNodes.image.pullSecrets` | app imagePullSecrets to use for private repository | `nil` |

charts/sonarqube-dce/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
searchNodes:
66
image:
77
repository: sonarqube
8-
tag: 9.9.7-datacenter-search
8+
tag: 9.9.8-datacenter-search
99
pullPolicy: IfNotPresent
1010
# If using a private repository, the imagePullSecrets to use
1111
# pullSecrets:
@@ -113,7 +113,7 @@ searchNodes:
113113
ApplicationNodes:
114114
image:
115115
repository: sonarqube
116-
tag: 9.9.7-datacenter-app
116+
tag: 9.9.8-datacenter-app
117117
pullPolicy: IfNotPresent
118118
# If using a private repository, the imagePullSecrets to use
119119
# pullSecrets:

charts/sonarqube/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SonarQube Chart Changelog
22
All changes to this chart will be documented in this file.
33

4+
## [8.0.8]
5+
* Update SonarQube to 9.9.8
6+
47
## [8.0.7]
58
* Update SonarQube to 9.9.7
69

charts/sonarqube/Chart.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: sonarqube
33
description: SonarQube offers Code Quality and Code Security analysis for up to 27 languages. Find Bugs, Vulnerabilities, Security Hotspots and Code Smells throughout your workflow.
44
type: application
5-
version: 8.0.7
6-
appVersion: 9.9.7
5+
version: 8.0.8
6+
appVersion: 9.9.8
77
keywords:
88
- coverage
99
- security
@@ -16,8 +16,6 @@ sources:
1616
- https://github.com/SonarSource/sonarqube
1717
kubeVersion: '>= 1.19.0-0'
1818
maintainers:
19-
- name: leo-geoffroy-sonarsource
20-
2119
- name: carminevassallo
2220
2321
- name: jCOTINEAU
@@ -32,11 +30,11 @@ annotations:
3230
url: https://github.com/SonarSource/helm-chart-sonarqube/tree/master/charts/sonarqube
3331
artifacthub.io/changes: |
3432
- kind: changed
35-
description: "Update SonarQube to 9.9.7"
33+
description: "Update SonarQube to 9.9.8"
3634
artifacthub.io/containsSecurityUpdates: "false"
3735
artifacthub.io/images: |
3836
- name: sonarqube
39-
image: sonarqube:9.9.7-community
37+
image: sonarqube:9.9.8-community
4038
dependencies:
4139
- name: postgresql
4240
version: 10.15.0

0 commit comments

Comments
 (0)