Skip to content

Commit 879ae15

Browse files
committed
fix: Ensure shards required
Signed-off-by: Deepak Punjabi <deepakpunjabi13@gmail.com>
1 parent 21dd262 commit 879ae15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/v1alpha1/valkeycluster_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ type ValkeyClusterSpec struct {
7676
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
7777

7878
// The number of shards groups. Each shard group contains one primary and N replicas.
79+
// +kubebuilder:validation:Required
7980
// +kubebuilder:validation:Minimum=1
80-
Shards int32 `json:"shards,omitempty"`
81+
Shards int32 `json:"shards"`
8182

8283
// The number of replicas for each shard group.
8384
// +kubebuilder:validation:Minimum=0

0 commit comments

Comments
 (0)