Skip to content

Commit

Permalink
fix api
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 May 1, 2024
1 parent 347ca3d commit 005906e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions api/v1alpha1/ext_proc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ type ExtProcMetadataOptions struct {
ReceivingNamespaces *MetadataNamespaces `json:"receivingNamespaces,omitempty"`
}

// +kubebuilder:validation:XValidation:rule="has(self.backendRef) ? (!has(self.backendRef.group) || self.backendRef.group == \"\") : true", message="group is invalid, only the core API group (specified by omitting the group field or setting it to an empty string) is supported"
// +kubebuilder:validation:XValidation:rule="has(self.backendRef) ? (!has(self.backendRef.kind) || self.backendRef.kind == 'Service') : true", message="kind is invalid, only Service (specified by omitting the kind field or setting it to 'Service') is supported"
//
// ExtProc defines the configuration for External Processing filter.
type ExtProc struct {
// BackendRefs defines the configuration of the external processing service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,6 @@ spec:
required:
- backendRefs
type: object
x-kubernetes-validations:
- message: group is invalid, only the core API group (specified
by omitting the group field or setting it to an empty string)
is supported
rule: 'has(self.backendRef) ? (!has(self.backendRef.group) ||
self.backendRef.group == "") : true'
- message: kind is invalid, only Service (specified by omitting
the kind field or setting it to 'Service') is supported
rule: 'has(self.backendRef) ? (!has(self.backendRef.kind) || self.backendRef.kind
== ''Service'') : true'
type: array
targetRef:
description: |-
Expand Down

0 comments on commit 005906e

Please sign in to comment.