You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): allow optional Cell TopoServer and adjust CEL validation limits
- Change `Cell.Spec.TopoServer` to a pointer (`*LocalTopoServerSpec`).
This allows the field to be omitted (nil) when using the global
default topology server, resolving validation errors where the
empty struct failed the "oneOf" requirement (etcd vs external).
- Adjusted validation limits due to CEL budget issues during integration tests. These limits may need to be adjusted as we go.
Copy file name to clipboardExpand all lines: api/v1alpha1/multigrescluster_types.go
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,15 @@ type MultigresClusterSpec struct {
48
48
// +optional
49
49
// +listType=map
50
50
// +listMapKey=name
51
-
// +kubebuilder:validation:MaxItems=100
51
+
// +kubebuilder:validation:MaxItems=50
52
52
Cells []CellConfig`json:"cells,omitempty"`
53
53
54
54
// Databases defines the logical databases, table groups, and sharding.
55
55
// +optional
56
56
// +listType=map
57
57
// +listMapKey=name
58
58
// +kubebuilder:validation:XValidation:rule="self.filter(x, has(x.default) && x.default).size() <= 1",message="only one database can be marked as default"
// +kubebuilder:validation:XValidation:rule="self.filter(x, has(x.default) && x.default).size() <= 1",message="only one tablegroup can be marked as default"
0 commit comments