Skip to content

Commit 8f61b9e

Browse files
authored
Merge pull request #34 from vshn/fix/migrate_storage
Don't use separate WAL storage
2 parents fdb4382 + de645ab commit 8f61b9e

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ helm repo add appcat https://charts.appcat.ch
2020
| [![chart downloads](https://img.shields.io/github/downloads/vshn/appcat-charts/vshngaragebucket-0.0.1/total)](https://github.com/vshn/appcat-charts/releases/tag/vshngaragebucket-0.0.1) | [vshngaragebucket](charts/vshngaragebucket/README.md) |
2121
| [![chart downloads](https://img.shields.io/github/downloads/vshn/appcat-charts/vshngaragecluster-0.0.1/total)](https://github.com/vshn/appcat-charts/releases/tag/vshngaragecluster-0.0.1) | [vshngaragecluster](charts/vshngaragecluster/README.md) |
2222
| [![chart downloads](https://img.shields.io/github/downloads/vshn/appcat-charts/vshnmariadb-0.0.12/total)](https://github.com/vshn/appcat-charts/releases/tag/vshnmariadb-0.0.12) | [vshnmariadb](charts/vshnmariadb/README.md) |
23-
| [![chart downloads](https://img.shields.io/github/downloads/vshn/appcat-charts/vshnpostgresql-0.8.0/total)](https://github.com/vshn/appcat-charts/releases/tag/vshnpostgresql-0.8.0) | [vshnpostgresql](charts/vshnpostgresql/README.md) |
23+
| [![chart downloads](https://img.shields.io/github/downloads/vshn/appcat-charts/vshnpostgresql-0.8.1/total)](https://github.com/vshn/appcat-charts/releases/tag/vshnpostgresql-0.8.1) | [vshnpostgresql](charts/vshnpostgresql/README.md) |
2424

2525
## Add / Update Charts
2626

charts/vshnpostgresql/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ apiVersion: v2
2020
name: vshnpostgresql
2121
description: A Helm chart for PostgreSQL clusters using the CloudNativePG operator
2222
type: application
23-
version: 0.8.0
24-
appVersion: 0.8.0
23+
version: 0.8.1
24+
appVersion: 0.8.1
2525
maintainers:
2626
- name: Schedar Team
2727
email: info@vshn.ch

charts/vshnpostgresql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vshnpostgresql
22

3-
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.0](https://img.shields.io/badge/AppVersion-0.8.0-informational?style=flat-square)
3+
![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.1](https://img.shields.io/badge/AppVersion-0.8.1-informational?style=flat-square)
44

55
A Helm chart for PostgreSQL clusters using the CloudNativePG operator
66

charts/vshnpostgresql/templates/cluster.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{{- $name := include "cluster.fullname" . -}}
2+
{{- $namespace := include "cluster.namespace" . -}}
3+
{{- $existingCluster := lookup "postgresql.cnpg.io/v1" "Cluster" $namespace $name -}}
4+
{{- $walStorage := false -}}
5+
{{- if $existingCluster -}}
6+
{{- $walStorage = not (empty $existingCluster.spec.walStorage ) -}}
7+
{{- end -}}
18
apiVersion: postgresql.cnpg.io/v1
29
kind: Cluster
310
metadata:
@@ -27,7 +34,7 @@ spec:
2734
{{- if not (empty .Values.cluster.storage.storageClass) }}
2835
storageClass: {{ .Values.cluster.storage.storageClass }}
2936
{{- end }}
30-
{{- if .Values.cluster.walStorage.enabled }}
37+
{{- if $walStorage }}
3138
walStorage:
3239
size: {{ .Values.cluster.walStorage.size }}
3340
{{- if not (empty .Values.cluster.walStorage.storageClass) }}

0 commit comments

Comments
 (0)