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-21 15:20:35 +00:00
parent d12f3ea757
commit eaa20c16e7
3 changed files with 7 additions and 3 deletions

View File

@@ -364,6 +364,7 @@ type PersistenceConfig struct {
// This field is only relevant in "dynamic" mode.
//
// +kubebuilder:default="2G"
// +kubebuilder:validation:XValidation:message="storageRequestSize is immutable",rule="self == oldSelf"
// +optional
StorageRequestSize *resource.Quantity `json:"storageRequestSize,omitempty"`
}