Skip to content

Commit 5e54e70

Browse files
SONAR-25700 Update the repository used by postgresql's image to bitnamylegacy
1 parent 4a45bea commit 5e54e70

File tree

66 files changed

+598
-544
lines changed

Some content is hidden

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

66 files changed

+598
-544
lines changed

charts/sonarqube-dce/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All changes to this chart will be documented in this file.
44
## [2025.4.2]
55
* Update Chart's version to 2025.4.2
66
* Upgrade SonarQube Server to 2025.4.2
7+
* Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository
78

89
## [2025.4.1]
910
* Update Chart's version to 2025.4.1

charts/sonarqube-dce/Chart.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ annotations:
2929
description: "Update Chart's version to 2025.4.2"
3030
- kind: changed
3131
description: "Upgrade SonarQube Server to 2025.4.2"
32+
- kind: changed
33+
description: "Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository"
3234
artifacthub.io/links: |
3335
- name: support
3436
url: https://community.sonarsource.com/

charts/sonarqube-dce/values.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,32 @@ postgresql:
710710
# imageRegistry: ''
711711
# imagePullSecrets: ''
712712
## bitnami/postgres image tag
713-
# image:
714-
# tag: 11.7.0-debian-10-r9
713+
image:
714+
repository: "bitnamilegacy/postgresql"
715+
# tag: 11.14.0-debian-10-r22
716+
# Set the readiness probe to avoid that the initialization scripts' are not completed before marking the pod as ready.
717+
readinessProbe:
718+
enabled: false
719+
customReadinessProbe:
720+
exec:
721+
command:
722+
- /bin/sh
723+
- -c
724+
- -e
725+
- |
726+
{{- if (include "postgresql.database" .) }}
727+
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 }}
728+
{{- else }}
729+
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 }}
730+
{{- end }}
731+
{{- if contains "bitnamilegacy/" .Values.image.repository }}
732+
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
733+
{{- end }}
734+
failureThreshold: 6
735+
initialDelaySeconds: 5
736+
periodSeconds: 10
737+
successThreshold: 1
738+
timeoutSeconds: 5
715739
# existingSecret Name of existing secret to use for PostgreSQL passwords
716740
# The secret has to contain the keys postgresql-password which is the password for postgresqlUsername when it is
717741
# different of postgres, postgresql-postgres-password which will override postgresqlPassword,

charts/sonarqube/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All changes to this chart will be documented in this file.
55
* Update Chart's version to 2025.4.2
66
* Upgrade SonarQube Server to 2025.4.2
77
* Upgrade SonarQube Community Build to 25.8.0.112029
8+
* Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository
89

910
## [2025.4.1]
1011
* Update Chart's version to 2025.4.1

charts/sonarqube/Chart.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ annotations:
3636
description: "Upgrade SonarQube Server to 2025.4.2"
3737
- kind: changed
3838
description: "Upgrade SonarQube Community Build to 25.8.0.112029"
39+
- kind: changed
40+
description: "Update the image repository and readinessProbe used by postgresql after they migrated to a legacy repository"
3941
artifacthub.io/containsSecurityUpdates: "false"
4042
artifacthub.io/images: |
4143
- name: sonarqube-community

charts/sonarqube/values.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,32 @@ postgresql:
551551
# imageRegistry: ''
552552
# imagePullSecrets: ''
553553
## bitnami/postgres image tag
554-
# image:
555-
# tag: 11.7.0-debian-10-r9
554+
image:
555+
repository: "bitnamilegacy/postgresql"
556+
# tag: 11.14.0-debian-10-r22
557+
# Set the readiness probe to avoid that the initialization scripts' are not completed before marking the pod as ready.
558+
readinessProbe:
559+
enabled: false
560+
customReadinessProbe:
561+
exec:
562+
command:
563+
- /bin/sh
564+
- -c
565+
- -e
566+
- |
567+
{{- if (include "postgresql.database" .) }}
568+
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 }}
569+
{{- else }}
570+
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 }}
571+
{{- end }}
572+
{{- if contains "bitnamilegacy/" .Values.image.repository }}
573+
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
574+
{{- end }}
575+
failureThreshold: 6
576+
initialDelaySeconds: 5
577+
periodSeconds: 10
578+
successThreshold: 1
579+
timeoutSeconds: 5
556580
# existingSecret Name of existing secret to use for PostgreSQL passwords
557581
# The secret has to contain the keys postgresql-password which is the password for postgresqlUsername when it is
558582
# different of postgres, postgresql-postgres-password which will override postgresqlPassword,

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ spec:
686686
automountServiceAccountToken: false
687687
containers:
688688
- name: application-static-hazelcast-values.yaml-postgresql
689-
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
689+
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
690690
imagePullPolicy: "IfNotPresent"
691691
resources:
692692
limits:
@@ -760,17 +760,17 @@ spec:
760760
readinessProbe:
761761
exec:
762762
command:
763-
- /bin/sh
764-
- -c
765-
- -e
766-
- |
767-
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
768-
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
763+
- /bin/sh
764+
- -c
765+
- -e
766+
- |
767+
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
768+
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
769+
failureThreshold: 6
769770
initialDelaySeconds: 5
770771
periodSeconds: 10
771-
timeoutSeconds: 5
772772
successThreshold: 1
773-
failureThreshold: 6
773+
timeoutSeconds: 5
774774
volumeMounts:
775775
- name: dshm
776776
mountPath: /dev/shm

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ spec:
619619
automountServiceAccountToken: false
620620
containers:
621621
- name: application-values.yaml-postgresql
622-
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
622+
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
623623
imagePullPolicy: "IfNotPresent"
624624
resources:
625625
limits:
@@ -693,17 +693,17 @@ spec:
693693
readinessProbe:
694694
exec:
695695
command:
696-
- /bin/sh
697-
- -c
698-
- -e
699-
- |
700-
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
701-
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
696+
- /bin/sh
697+
- -c
698+
- -e
699+
- |
700+
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
701+
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
702+
failureThreshold: 6
702703
initialDelaySeconds: 5
703704
periodSeconds: 10
704-
timeoutSeconds: 5
705705
successThreshold: 1
706-
failureThreshold: 6
706+
timeoutSeconds: 5
707707
volumeMounts:
708708
- name: dshm
709709
mountPath: /dev/shm

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ spec:
708708
automountServiceAccountToken: false
709709
containers:
710710
- name: ca-certificates-configmap.yaml-postgresql
711-
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
711+
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
712712
imagePullPolicy: "IfNotPresent"
713713
resources:
714714
limits:
@@ -782,17 +782,17 @@ spec:
782782
readinessProbe:
783783
exec:
784784
command:
785-
- /bin/sh
786-
- -c
787-
- -e
788-
- |
789-
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
790-
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
785+
- /bin/sh
786+
- -c
787+
- -e
788+
- |
789+
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
790+
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
791+
failureThreshold: 6
791792
initialDelaySeconds: 5
792793
periodSeconds: 10
793-
timeoutSeconds: 5
794794
successThreshold: 1
795-
failureThreshold: 6
795+
timeoutSeconds: 5
796796
volumeMounts:
797797
- name: dshm
798798
mountPath: /dev/shm

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ spec:
647647
automountServiceAccountToken: false
648648
containers:
649649
- name: ca-certificates-secret.yaml-postgresql
650-
image: docker.io/bitnami/postgresql:11.14.0-debian-10-r22
650+
image: docker.io/bitnamilegacy/postgresql:11.14.0-debian-10-r22
651651
imagePullPolicy: "IfNotPresent"
652652
resources:
653653
limits:
@@ -721,17 +721,17 @@ spec:
721721
readinessProbe:
722722
exec:
723723
command:
724-
- /bin/sh
725-
- -c
726-
- -e
727-
- |
728-
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
729-
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
724+
- /bin/sh
725+
- -c
726+
- -e
727+
- |
728+
exec pg_isready -U "sonarUser" -d "dbname=sonarDB" -h 127.0.0.1 -p 5432
729+
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
730+
failureThreshold: 6
730731
initialDelaySeconds: 5
731732
periodSeconds: 10
732-
timeoutSeconds: 5
733733
successThreshold: 1
734-
failureThreshold: 6
734+
timeoutSeconds: 5
735735
volumeMounts:
736736
- name: dshm
737737
mountPath: /dev/shm

0 commit comments

Comments
 (0)