Skip to content
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

NETOBSERV-927 Improve servicemonitor/prometheusrule checking changes … #302

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

jotak
Copy link
Member

@jotak jotak commented Mar 16, 2023

…perf

Only check for spec change, not meta
NB: namespace or name changes follow a different process; it is safe to not check for name/namespace changes there; you cannot anyway update a resource for a namespace or name change

…perf

Only check for spec change, not meta
NB: namespace or name changes follow a different process; it is
safe to not check for name/namespace changes there; you cannot anyway
update a resource for a namespace or name change
@jotak jotak requested a review from OlivierCazade March 16, 2023 15:58
@jotak
Copy link
Member Author

jotak commented Mar 16, 2023

@OlivierCazade when you have time to review, this should be a small perf improvement on the operator side

@jotak jotak requested a review from jpinsonneau March 21, 2023 08:06
@jotak jotak added no-qe This PR doesn't necessitate QE approval no-doc This PR doesn't require documentation change on the NetObserv operator labels Mar 21, 2023
Copy link
Contributor

@OlivierCazade OlivierCazade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about labels in meta?

@jotak
Copy link
Member Author

jotak commented Mar 22, 2023

@OlivierCazade done - also added labels to service monitors

@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #302 (12a5ac4) into main (36c2119) will decrease coverage by 0.44%.
The diff coverage is 72.88%.

@@            Coverage Diff             @@
##             main     #302      +/-   ##
==========================================
- Coverage   49.81%   49.38%   -0.44%     
==========================================
  Files          43       43              
  Lines        4984     5036      +52     
==========================================
+ Hits         2483     2487       +4     
- Misses       2301     2339      +38     
- Partials      200      210      +10     
Flag Coverage Δ
unittests 49.38% <72.88%> (-0.44%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
api/v1alpha1/flowcollector_webhook.go 0.00% <0.00%> (ø)
api/v1alpha1/zz_generated.conversion.go 0.27% <0.00%> (+<0.01%) ⬆️
api/v1beta1/flowcollector_types.go 100.00% <ø> (ø)
api/v1beta1/zz_generated.deepcopy.go 42.33% <0.00%> (-0.60%) ⬇️
controllers/flowlogspipeline/flp_common_objects.go 85.11% <100.00%> (-0.21%) ⬇️
pkg/helper/comparators.go 77.46% <100.00%> (ø)

... and 10 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jotak
Copy link
Member Author

jotak commented Mar 22, 2023

/approve

@openshift-ci
Copy link

openshift-ci bot commented Mar 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 1b56f8e into netobserv:main Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm no-doc This PR doesn't require documentation change on the NetObserv operator no-qe This PR doesn't necessitate QE approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants