-
Notifications
You must be signed in to change notification settings - Fork 1
cec: support for explicit control of Cilium Envoy filter injection #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: pr_045_before
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,7 @@ import ( | |||||
| "github.com/sirupsen/logrus" | ||||||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
|
|
||||||
| "github.com/cilium/cilium/pkg/annotation" | ||||||
| "github.com/cilium/cilium/pkg/envoy" | ||||||
| "github.com/cilium/cilium/pkg/k8s" | ||||||
| ciliumv2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" | ||||||
|
|
@@ -89,6 +90,7 @@ func (r *cecManager) addCiliumEnvoyConfig(cecObjectMeta metav1.ObjectMeta, cecSp | |||||
| cecObjectMeta.GetName(), | ||||||
| cecSpec.Resources, | ||||||
| len(cecSpec.Services) > 0, | ||||||
| len(cecSpec.Services) > 0, | ||||||
|
||||||
| len(cecSpec.Services) > 0, | |
| injectCiliumEnvoyFilters(&cecObjectMeta, cecSpec), |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -119,12 +119,13 @@ type PortAllocator interface { | |||||
| // Parameters: | ||||||
| // - `cecNamespace` and `cecName` will be prepended to the Envoy resource names. | ||||||
| // - `xdsResources` are the resources from the CiliumEnvoyConfig or CiliumClusterwideEnvoyConfig. | ||||||
| // - `isL7LB` defines whether these resources are used for L7 loadbalancing. If `true`, the Envoy Cilium Network- and L7 filters are always | ||||||
| // added to all non-internal Listeners. In addition, the info gets passed to the Envoy Cilium BPF Metadata listener filter on all Listeners. | ||||||
| // - `isL7LB` defines whether these resources are used for L7 loadbalancing. If `true`, the info gets passed to | ||||||
| // the Envoy Cilium BPF Metadata listener filter on all Listeners. | ||||||
| // - `injecCiliumEnvoyFilters` defines whether the Envoy Cilium Network- and L7 filters should always be added to all non-internal Listeners. | ||||||
|
||||||
| // - `injecCiliumEnvoyFilters` defines whether the Envoy Cilium Network- and L7 filters should always be added to all non-internal Listeners. | |
| // - `injectCiliumEnvoyFilters` defines whether the Envoy Cilium Network- and L7 filters should always be added to all non-internal Listeners. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The blank line at 204 creates inconsistent spacing in the constant declarations block. Consider removing it to maintain consistency with the surrounding code formatting.