Skip to content

Commit

Permalink
set MaxItems=1
Browse files Browse the repository at this point in the history
Signed-off-by: Guy Daich <guy.daich@sap.com>
  • Loading branch information
guydc committed Apr 23, 2024
1 parent f637cae commit d3a05fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/backend_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ type UnixDomainSocketAddress struct {

// BackendSpec describes the desired state of BackendSpec.
type BackendSpec struct {
// +kubebuilder:validation:MaxItems=1
BackendAddresses []BackendAddress `json:"addresses,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ spec:
can be specified
rule: (has(self.socketAddress) && !has(self.unixDomainSocketAddress))
|| (!has(self.socketAddress) && has(self.unixDomainSocketAddress))
maxItems: 1
type: array
type: object
status:
Expand Down

0 comments on commit d3a05fc

Please sign in to comment.