NETOBSERV-2053: change FLP filtering API#1260
Conversation
- Use AllOf+AnyOf - More explicit documentation about what it does - Move OutputTarget one level above in parent, to avoid users having to duplicate it in every rule
|
@jotak: This pull request references NETOBSERV-2053 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target either version "4.19." or "openshift-4.19.", but it targets "netobserv-1.9" instead. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1260 +/- ##
==========================================
- Coverage 62.63% 62.57% -0.07%
==========================================
Files 76 76
Lines 11525 11567 +42
==========================================
+ Hits 7219 7238 +19
- Misses 3842 3865 +23
Partials 464 464
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
OlivierCazade
left a comment
There was a problem hiding this comment.
The code is LGTM, just some concerns about upgrades.
| // `anyOf` contains a list of rules evaluated individually: any satisfied rule results in a match. | ||
| // +optional | ||
| AllOf []FLPSingleFilter `json:"allOf"` | ||
| AnyOf []FLPFilterAnyOf `json:"anyOf"` |
There was a problem hiding this comment.
Isn´t this a breaking change ?
In 1.8.0 we have a Allof directly inside the Filter field.
Assuming someone already has some Filters configured, will an upgrade succeed ?
|
/ok-to-test |
|
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:6f5bc7e make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-6f5bc7eOr as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-6f5bc7e
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
| // `filters` lets you define custom filters to limit the amount of generated flows. | ||
| // These filters provide more flexibility than the eBPF Agent filters (in `spec.agent.ebpf.flowFilter`), such as allowing to filter by Kubernetes namespace, | ||
| // but with a lesser improvement in performance. | ||
| // [Unsupported (*)]. |
There was a problem hiding this comment.
Can remove the Unsupported references since its going GA in 1.9
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@Amoghrd correct, closing it |
Description
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.