forked from envoyproxy/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(translator): Envoy Extension Policy and ExtProc (envoyproxy#2991)
* start eep Signed-off-by: Guy Daich <guy.daich@sap.com> * fixes Signed-off-by: Guy Daich <guy.daich@sap.com> * tests Signed-off-by: Guy Daich <guy.daich@sap.com> * ext-proc xds Signed-off-by: Guy Daich <guy.daich@sap.com> * impl envoygateway config, remove priority, change backendref Signed-off-by: Guy Daich <guy.daich@sap.com> * fix cel Signed-off-by: Guy Daich <guy.daich@sap.com> * enable by default Signed-off-by: Guy Daich <guy.daich@sap.com> * fix nit Signed-off-by: Guy Daich <guy.daich@sap.com> * revert generated metrics data Signed-off-by: Guy Daich <guy.daich@sap.com> * fix review comments Signed-off-by: Guy Daich <guy.daich@sap.com> * nit: remove unused struct Signed-off-by: Guy Daich <guy.daich@sap.com> --------- Signed-off-by: Guy Daich <guy.daich@sap.com>
- Loading branch information
Showing
55 changed files
with
4,919 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright Envoy Gateway Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// The full text of the Apache license is available in the LICENSE file at | ||
// the root of the repo. | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
gwapiv1 "sigs.k8s.io/gateway-api/apis/v1" | ||
) | ||
|
||
// +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 { | ||
// Service defines the configuration of the external processing service | ||
BackendRef ExtProcBackendRef `json:"backendRef"` | ||
} | ||
|
||
// ExtProcService defines the gRPC External Processing service using the envoy grpc client | ||
// The processing request and response messages are defined in | ||
// https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/ext_proc/v3/external_processor.proto | ||
type ExtProcBackendRef struct { | ||
// BackendObjectReference references a Kubernetes object that represents the | ||
// backend server to which the processing requests will be sent. | ||
// Only service Kind is supported for now. | ||
gwapiv1.BackendObjectReference `json:",inline"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.