@@ -36,6 +36,7 @@ import (
3636// +kubebuilder:rbac:groups=apps,resources=deployments;statefulsets,verbs=get;list;watch;create;update;patch;delete
3737// +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;patch;delete
3838// +kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete
39+ // +kubebuilder:rbac:groups="",resources=configmaps,verbs=get;list;watch;create;update;patch;delete
3940
4041// ============================================================================
4142// Shard Component Specs (Reusable)
@@ -77,13 +78,10 @@ type PoolSpec struct {
7778 // +optional
7879 Storage StorageSpec `json:"storage,omitempty"`
7980
80- // BackupStorageType defines how backup storage is provided.
81- // Valid values are "hostPath" (for single-node testing) and "pvc" (for production).
82- // Defaults to "hostPath".
81+ // BackupStorage defines the storage configuration for backup volumes.
82+ // Shared across all pods in a pool. Defaults to same as Storage if not specified.
8383 // +optional
84- // +kubebuilder:validation:Enum=hostPath;pvc
85- // +kubebuilder:default="hostPath"
86- BackupStorageType string `json:"backupStorageType,omitempty"`
84+ BackupStorage StorageSpec `json:"backupStorage,omitempty"`
8785
8886 // Postgres container configuration.
8987 // +optional
0 commit comments