-
Notifications
You must be signed in to change notification settings - Fork 117
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
Improve data-plane pods annotation update logic #999
Improve data-plane pods annotation update logic #999
Conversation
5528958
to
21778e7
Compare
Codecov Report
@@ Coverage Diff @@
## main #999 +/- ##
============================================
- Coverage 75.60% 75.25% -0.35%
- Complexity 417 420 +3
============================================
Files 73 74 +1
Lines 2906 2914 +8
Branches 124 124
============================================
- Hits 2197 2193 -4
- Misses 556 564 +8
- Partials 153 157 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There could be situations where our reconciler failed to update a pod annotation in a previous reconcile and since there might be multiple pods running we want to make sure that all pods have the same annotation. This patch moves the logic to check that we're not performing an unnecessary update down to when we're trying to update a single pod annotation. Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
21778e7
to
b36a40e
Compare
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.
Minor comment
The following is the coverage report on the affected files.
|
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pierDipi, slinkydeveloper 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 |
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
…ions#1065) Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
There could be situations where our reconciler failed to update a pod annotation
in a previous reconcile and since there might be multiple pods running we
want to make sure that all pods have the same annotation.
This patch moves the logic to check that we're not performing an
unnecessary update down to when we're trying to update a single pod
annotation.
Signed-off-by: Pierangelo Di Pilato pierangelodipilato@gmail.com