Skip to content

Commit 0b7c65d

Browse files
committed
Improve docs around storageClassName
1 parent 94d030c commit 0b7c65d

3 files changed

Lines changed: 22 additions & 6 deletions

File tree

charts/matrix-stack/source/common/sub_schema_values.yaml.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ imagePullSecrets: []
194194
size: 10Gi
195195

196196
## The StorageClass to be used by the constructed PersistentVolumeClaim.
197-
## Will use the cluster default if not provided
197+
## Will use the cluster default if not provided.
198+
## If changed after initial usage the PersistentVolumeClaim could be recreated causing data-loss.
198199
## Ignored if existingClaim is provided
199-
# storageClass:
200+
# storageClassName:
200201

201202
## Whether to instruct Helm to keep or delete the constructed PersistentVolumeClaim when uninstalling the chart
202203
## Ignored if existingClaim is provided

charts/matrix-stack/values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,9 +2083,10 @@ postgres:
20832083
size: 10Gi
20842084

20852085
## The StorageClass to be used by the constructed PersistentVolumeClaim.
2086-
## Will use the cluster default if not provided
2086+
## Will use the cluster default if not provided.
2087+
## If changed after initial usage the PersistentVolumeClaim could be recreated causing data-loss.
20872088
## Ignored if existingClaim is provided
2088-
# storageClass:
2089+
# storageClassName:
20892090

20902091
## Whether to instruct Helm to keep or delete the constructed PersistentVolumeClaim when uninstalling the chart
20912092
## Ignored if existingClaim is provided
@@ -2363,9 +2364,10 @@ synapse:
23632364
size: 10Gi
23642365

23652366
## The StorageClass to be used by the constructed PersistentVolumeClaim.
2366-
## Will use the cluster default if not provided
2367+
## Will use the cluster default if not provided.
2368+
## If changed after initial usage the PersistentVolumeClaim could be recreated causing data-loss.
23672369
## Ignored if existingClaim is provided
2368-
# storageClass:
2370+
# storageClassName:
23692371

23702372
## Whether to instruct Helm to keep or delete the constructed PersistentVolumeClaim when uninstalling the chart
23712373
## Ignored if existingClaim is provided

newsfragments/583.fixed.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Fix Postgres and Synapse Media `storageClassName` configuration not being respected.
2+
3+
**Warning** Previously `synapse.media.storage.storageClass` and `postgres.storage.storageClass`
4+
were in the values file and associated schema. These values were accidentally silently ignored
5+
and all chart-managed `PersistentVolumeClaims` were constructed without `spec.storageClassName`
6+
set, using the cluster default `StorageClass`.
7+
8+
The values file and associated schema have been updated so that the values are now
9+
`synapse.media.storage.storageClassName` and `postgres.storage.storageClassName`. The previous
10+
values are disallowed by the schema. Setting these values after the initial install could
11+
cause the `PersistentVolumeClaims` to be recreated, with associated data-loss. Only set
12+
`synapse.media.storage.storageClassName` or `postgres.storage.storageClassName` on initial
13+
installation.

0 commit comments

Comments
 (0)