Skip to content

Commit 61201eb

Browse files
committed
add ommitempty
Signed-off-by: Florent Poinsard <[email protected]>
1 parent ff4abc1 commit 61201eb

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

deploy/crds/planetscale.com_vitessclusters.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,6 @@ spec:
25832583
- databaseInitScriptSecret
25842584
type: object
25852585
required:
2586-
- hexWidth
25872586
- parts
25882587
type: object
25892588
type: object

deploy/crds/planetscale.com_vitesskeyspaces.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,6 @@ spec:
11241124
- databaseInitScriptSecret
11251125
type: object
11261126
required:
1127-
- hexWidth
11281127
- parts
11291128
type: object
11301129
type: object

pkg/apis/planetscale/v2/vitesskeyspace_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ type VitessKeyspaceEqualPartitioning struct {
362362
// +kubebuilder:default=0
363363
// +kubebuilder:validation:Minimum=0
364364
// +kubebuilder:validation:Maximum=65536
365-
HexWidth int32 `json:"hexWidth"`
365+
HexWidth int32 `json:"hexWidth,omitempty"`
366366

367367
// ShardTemplate is the configuration used for each equal-sized shard.
368368
// If you need shards that don't all share the same configuration,

0 commit comments

Comments
 (0)