-
Notifications
You must be signed in to change notification settings - Fork 26
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
enable ebpf metrics by default while keep the knob in case we need to disable #649
Conversation
/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:9bd6528 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-9bd6528 Or 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-9bd6528
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
3e0926b
to
9aec5cc
Compare
/ok-to-test |
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.
/label qe-approved (based on code inspection)
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:931895d make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-931895d Or 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-931895d
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
/label qe-approved |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #649 +/- ##
=======================================
Coverage 67.00% 67.00%
=======================================
Files 68 68
Lines 7804 7804
=======================================
Hits 5229 5229
Misses 2197 2197
Partials 378 378
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msherif1234 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Sorry I approved too fast
You need to update IsEBPFMetricsEnabled
in helper package
/hold |
@msherif1234 the default was not controlled via openapi/kubebuilder, but in code instead. Like in other places, this is in order to keep control on what we set as defaults, even for users who are upgrading and who might already have a FlowCollector installed. |
9aec5cc
to
b7443af
Compare
/hold cancel |
@@ -173,7 +173,9 @@ type EBPFMetrics struct { | |||
// +optional | |||
Server MetricsServerConfig `json:"server,omitempty"` | |||
|
|||
// Set `enable` to `true` to enable eBPF agent metrics collection. | |||
// Set `enable` to `false` to disable eBPF agent metrics collection, by default it's `true`. | |||
//+kubebuilder:default:=true |
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.
I wouldn't add this annotation, as it writes in stone the default for any user installing a flowcollector, disallowing us from changing the default value in future releases for these users.
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.
removed it
… disable it Signed-off-by: Mohamed Mahmoud <[email protected]>
b7443af
to
20adcbc
Compare
Description
enable ebpf metrics by default while still keeping the config in case we need to disable it
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.