From 005906ebc49b0b41d797fe9665e021f046290dfd Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Wed, 1 May 2024 16:04:39 -0500 Subject: [PATCH] fix api Signed-off-by: Guy Daich --- api/v1alpha1/ext_proc_types.go | 3 --- .../gateway.envoyproxy.io_envoyextensionpolicies.yaml | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/api/v1alpha1/ext_proc_types.go b/api/v1alpha1/ext_proc_types.go index 0a0d705f86c..a65bbeb24ea 100644 --- a/api/v1alpha1/ext_proc_types.go +++ b/api/v1alpha1/ext_proc_types.go @@ -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 diff --git a/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_envoyextensionpolicies.yaml b/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_envoyextensionpolicies.yaml index 356ba48bd95..5d1e1eef384 100644 --- a/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_envoyextensionpolicies.yaml +++ b/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_envoyextensionpolicies.yaml @@ -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: |-