NETOBSERV-2655: additionalIncludeList field to append metrics to default#2546
NETOBSERV-2655: additionalIncludeList field to append metrics to default#2546Amoghrd wants to merge 1 commit intonetobserv:mainfrom
Conversation
|
@Amoghrd: This pull request references NETOBSERV-2655 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 story to target the "4.22.0" version, but no target version was set. 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. |
4221dd0 to
735d68e
Compare
e341726 to
2999d48
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2546 +/- ##
==========================================
- Coverage 72.14% 72.11% -0.03%
==========================================
Files 105 105
Lines 10762 10783 +21
==========================================
+ Hits 7764 7776 +12
- Misses 2517 2525 +8
- Partials 481 482 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
jotak
left a comment
There was a problem hiding this comment.
We can't change the behaviour of the existing API, it would be a breaking change.
We need instead to create a new setting, such as "additionalIncludeList", and keep the existing as it is.
|
Sounds good, will do that |
2999d48 to
c089707
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
c089707 to
e970bd3
Compare
|
@Amoghrd: This pull request references NETOBSERV-2655 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 story to target the "4.22.0" version, but no target version was set. 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. |
jotak
left a comment
There was a problem hiding this comment.
just a small comment, LGTM otherwise
e970bd3 to
8f898d8
Compare
|
/ok-to-test |
|
New images: quay.io/netobserv/network-observability-operator:aa88674
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-aa88674
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-aa88674They will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:aa88674 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-aa88674Or 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-sha-aa88674
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
Description
Adds a new
additionalIncludeListfield to allow appending metrics to the defaults without breaking backward compatibility.Problem: The original
includeListfield overwrites the default metrics list. Users who want to add a few extra metrics need to specify all defaults + their additions, which is cumbersome.Solution:
includeListbehavior unchanged (overwrites defaults) - backwards compatibleadditionalIncludeListfield that appends to defaultsincludeListtakes precedence and a validation warning is shownUsage Examples:
Append to defaults:
Override defaults (existing behavior):
Changes
additionalIncludeListfield toFLPMetricsAPIGetIncludeList()to support the new fieldDependencies
n/a
Checklist