Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
remote-repo: sonarsource-helm
build-number: ${{ github.event.inputs.buildNumber }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
Expand All @@ -59,12 +59,4 @@ jobs:
with:
repository-name: "${{ github.event.repository.name }}"
package-path: ${{ steps.local_repo.outputs.dir }}
release-name: "${{ github.event.inputs.version}}"
- name: Notify failures on Slack
if: failure()
uses: Ilshidur/[email protected]
env:
SLACK_WEBHOOK: ${{ fromJSON(steps.secrets.outputs.vault).slack_webhook_url }}
SLACK_CHANNEL: team-sonarqube-build
with:
args: "Helm Chart Release failed, see the logs at https://github.com/SonarSource/helm-chart-sonarqube/actions"
release-name: "${{ github.event.inputs.version}}"
1 change: 1 addition & 0 deletions charts/sonarqube-dce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All changes to this chart will be documented in this file.
## [2025.1.3]
* Update Chart's version to 2025.1.3
* Upgrade SonarQube Server to 2025.1.3
* Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository

## [2025.1.2]
* Update Chart's version to 2025.1.2
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube-dce/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ annotations:
description: "Update Chart's version to 2025.1.3"
- kind: changed
description: "Upgrade SonarQube Server to 2025.1.3"
- kind: changed
description: "Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository"
artifacthub.io/links: |
- name: support
url: https://community.sonarsource.com/
Expand Down
28 changes: 26 additions & 2 deletions charts/sonarqube-dce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,32 @@ postgresql:
# imageRegistry: ''
# imagePullSecrets: ''
## bitnami/postgres image tag
# image:
# tag: 11.7.0-debian-10-r9
image:
repository: "bitnamilegacy/postgresql"
# tag: 11.14.0-debian-10-r22
# Set the readiness probe to avoid that the initialization scripts' are not completed before marking the pod as ready.
readinessProbe:
enabled: false
customReadinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
{{- if (include "postgresql.database" .) }}
exec pg_isready -U {{ include "postgresql.username" . | quote }} -d "dbname={{ include "postgresql.database" . }} {{- if .Values.tls.enabled }} sslcert={{ include "postgresql.tlsCert" . }} sslkey={{ include "postgresql.tlsCertKey" . }}{{- end }}" -h 127.0.0.1 -p {{ .Values.containerPorts.postgresql }}
{{- else }}
exec pg_isready -U {{ include "postgresql.username" . | quote }} {{- if .Values.tls.enabled }} -d "sslcert={{ include "postgresql.tlsCert" . }} sslkey={{ include "postgresql.tlsCertKey" . }}"{{- end }} -h 127.0.0.1 -p {{ .Values.containerPorts.postgresql }}
{{- end }}
{{- if contains "bitnamilegacy/" .Values.image.repository }}
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
{{- end }}
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
# existingSecret Name of existing secret to use for PostgreSQL passwords
# The secret has to contain the keys postgresql-password which is the password for postgresqlUsername when it is
# different of postgres, postgresql-postgres-password which will override postgresqlPassword,
Expand Down
1 change: 1 addition & 0 deletions charts/sonarqube/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All changes to this chart will be documented in this file.
## [2025.1.3]
* Update Chart's version to 2025.1.3
* Upgrade SonarQube Server to 2025.1.3
* Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository

## [2025.1.2]
* Update Chart's version to 2025.1.2
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ annotations:
description: "Update Chart's version to 2025.1.3"
- kind: changed
description: "Upgrade SonarQube Server to 2025.1.3"
- kind: changed
description: "Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository"
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/images: |
- name: sonarqube
Expand Down
28 changes: 26 additions & 2 deletions charts/sonarqube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,32 @@ postgresql:
# imageRegistry: ''
# imagePullSecrets: ''
## bitnami/postgres image tag
# image:
# tag: 11.7.0-debian-10-r9
image:
repository: "bitnamilegacy/postgresql"
# tag: 11.14.0-debian-10-r22
# Set the readiness probe to avoid that the initialization scripts' are not completed before marking the pod as ready.
readinessProbe:
enabled: false
customReadinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
{{- if (include "postgresql.database" .) }}
exec pg_isready -U {{ include "postgresql.username" . | quote }} -d "dbname={{ include "postgresql.database" . }} {{- if .Values.tls.enabled }} sslcert={{ include "postgresql.tlsCert" . }} sslkey={{ include "postgresql.tlsCertKey" . }}{{- end }}" -h 127.0.0.1 -p {{ .Values.containerPorts.postgresql }}
{{- else }}
exec pg_isready -U {{ include "postgresql.username" . | quote }} {{- if .Values.tls.enabled }} -d "sslcert={{ include "postgresql.tlsCert" . }} sslkey={{ include "postgresql.tlsCertKey" . }}"{{- end }} -h 127.0.0.1 -p {{ .Values.containerPorts.postgresql }}
{{- end }}
{{- if contains "bitnamilegacy/" .Values.image.repository }}
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
{{- end }}
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
# existingSecret Name of existing secret to use for PostgreSQL passwords
# The secret has to contain the keys postgresql-password which is the password for postgresqlUsername when it is
# different of postgres, postgresql-postgres-password which will override postgresqlPassword,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: application-values.yaml-postgresql
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
imagePullPolicy: "IfNotPresent"
resources:
limits:
Expand Down Expand Up @@ -692,17 +692,17 @@ spec:
readinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
timeoutSeconds: 5
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: ca-certificates-configmap.yaml-postgresql
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
imagePullPolicy: "IfNotPresent"
resources:
limits:
Expand Down Expand Up @@ -781,17 +781,17 @@ spec:
readinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
timeoutSeconds: 5
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: ca-certificates-secret.yaml-postgresql
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
imagePullPolicy: "IfNotPresent"
resources:
limits:
Expand Down Expand Up @@ -720,17 +720,17 @@ spec:
readinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
timeoutSeconds: 5
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: change-admin-password-hook-values.yaml-postgresql
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
imagePullPolicy: "IfNotPresent"
resources:
limits:
Expand Down Expand Up @@ -706,17 +706,17 @@ spec:
readinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
timeoutSeconds: 5
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: config-values.yaml-postgresql
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
imagePullPolicy: "IfNotPresent"
resources:
limits:
Expand Down Expand Up @@ -759,17 +759,17 @@ spec:
readinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
timeoutSeconds: 5
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: custom-image-values.yaml-postgresql
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
imagePullPolicy: "IfNotPresent"
resources:
limits:
Expand Down Expand Up @@ -692,17 +692,17 @@ spec:
readinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
timeoutSeconds: 5
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: default-values.yaml-postgresql
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
imagePullPolicy: "IfNotPresent"
resources:
limits:
Expand Down Expand Up @@ -692,17 +692,17 @@ spec:
readinessProbe:
exec:
command:
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
- /bin/sh
- -c
- -e
- |
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
timeoutSeconds: 5
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand Down
Loading