Skip to content

Commit cdb7533

Browse files
committed
Add validation for satellite
1 parent 98b2317 commit cdb7533

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

api/v1beta1/foundationdbcluster_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,8 @@ type DataCenter struct {
16971697
// Satellite indicates whether the data center is serving as a satellite for
16981698
// the region. A value of 1 indicates that it is a satellite, and a value of
16991699
// 0 indicates that it is not a satellite.
1700+
// +kubebuilder:validation:Minimum=0
1701+
// +kubebuilder:validation:Maximum=1
17001702
Satellite int `json:"satellite,omitempty"`
17011703
}
17021704

config/crd/bases/apps.foundationdb.org_foundationdbclusters.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ spec:
669669
priority:
670670
type: integer
671671
satellite:
672+
maximum: 1
673+
minimum: 0
672674
type: integer
673675
type: object
674676
type: array
@@ -8387,6 +8389,8 @@ spec:
83878389
priority:
83888390
type: integer
83898391
satellite:
8392+
maximum: 1
8393+
minimum: 0
83908394
type: integer
83918395
type: object
83928396
type: array

0 commit comments

Comments
 (0)