Make the storageRequestSize immutable.

It can't be changed in the StatefulSet and modifying the value causes an
error.
This commit is contained in:
Kevin McDermott
2026-01-22 08:27:20 +00:00
parent d12f3ea757
commit eaa20c16e7
3 changed files with 7 additions and 3 deletions
@@ -443,6 +443,9 @@ spec:
This field is only relevant in "dynamic" mode.
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
x-kubernetes-validations:
- message: storageRequestSize is immutable
rule: self == oldSelf
type:
default: dynamic
description: Type specifies the persistence mode.