Skip to content

Commit 805d3f8

Browse files
[postgres] implement support for existingClaim (CloudPirates-io#212)
* [postgres] implement support for existingClaim * Update CHANGELOG.md Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b654629 commit 805d3f8

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

charts/postgres/CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# Changelog
22

3-
## 0.6.1 (2025-09-29)
3+
## 0.7.1 (2025-10-02)
44

5-
* [Postgres] update default postgres config files ([#180](https://github.com/CloudPirates-io/helm-charts/pull/180))
5+
* [postgres] implement support for existingClaim ([#212](https://github.com/CloudPirates-io/helm-charts/pull/212))
6+
7+
## 0.7.0 (2025-09-30)
8+
9+
* make postgres run on openshift (#184) ([0396895](https://github.com/CloudPirates-io/helm-charts/commit/0396895)), closes [#184](https://github.com/CloudPirates-io/helm-charts/issues/184)
10+
11+
## <small>0.6.1 (2025-09-29)</small>
12+
13+
* update default postgres config files (#180) ([6385512](https://github.com/CloudPirates-io/helm-charts/commit/6385512)), closes [#180](https://github.com/CloudPirates-io/helm-charts/issues/180)
614

715
## <small>0.5.5 (2025-09-29)</small>
816

charts/postgres/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: postgres
33
description: The World's Most Advanced Open Source Relational Database
44
type: application
5-
version: 0.7.0
5+
version: 0.7.1
66
appVersion: "18.0"
77
keywords:
88
- postgres

charts/postgres/templates/statefulset.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ spec:
198198
- name: data
199199
emptyDir: {}
200200
{{- end }}
201+
{{- if .Values.persistence.existingClaim }}
202+
- name: data
203+
persistentVolumeClaim:
204+
claimName: {{ .Values.persistence.existingClaim }}
205+
{{- end }}
201206
{{- if not .Values.config.existingConfigmap }}
202207
- name: config
203208
configMap:
@@ -239,6 +244,7 @@ spec:
239244
whenDeleted: {{ .Values.persistentVolumeClaimRetentionPolicy.whenDeleted }}
240245
whenScaled: {{ .Values.persistentVolumeClaimRetentionPolicy.whenScaled }}
241246
{{- end }}
247+
{{- if not .Values.persistence.existingClaim }}
242248
volumeClaimTemplates:
243249
- metadata:
244250
name: data
@@ -261,4 +267,5 @@ spec:
261267
storageClassName: {{ .Values.persistence.storageClass | quote }}
262268
{{- end }}
263269
{{- end }}
270+
{{- end }}
264271
{{- end }}

0 commit comments

Comments
 (0)