Skip to content

Commit

Permalink
fix cel
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 7b4d46e commit a2e6c7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/backend_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Backend struct {
// corresponding to Envoy's Address: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/address.proto#config-core-v3-address
//
// +kubebuilder:validation:XValidation:rule="(has(self.socketAddress) || has(self.unixDomainSocketAddress))",message="one of socketAddress or unixDomainSocketAddress must be specified"
// +kubebuilder:validation:XValidation:rule="(has(self.SocketAddress) && !has(self.UnixDomainSocketAddress)) || (!has(self.SocketAddress) && has(self.UnixDomainSocketAddress))",message="only one of socketAddress or unixDomainSocketAddress can be specified"
// +kubebuilder:validation:XValidation:rule="(has(self.socketAddress) && !has(self.unixDomainSocketAddress)) || (!has(self.socketAddress) && has(self.unixDomainSocketAddress))",message="only one of socketAddress or unixDomainSocketAddress can be specified"
type BackendAddress struct {
// Name is the unique name of the backend address
Name string `json:"name,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ spec:
rule: (has(self.socketAddress) || has(self.unixDomainSocketAddress))
- message: only one of socketAddress or unixDomainSocketAddress
can be specified
rule: (has(self.SocketAddress) && !has(self.UnixDomainSocketAddress))
|| (!has(self.SocketAddress) && has(self.UnixDomainSocketAddress))
rule: (has(self.socketAddress) && !has(self.unixDomainSocketAddress))
|| (!has(self.socketAddress) && has(self.unixDomainSocketAddress))
type: array
type: object
status:
Expand Down

0 comments on commit a2e6c7d

Please sign in to comment.