-
Notifications
You must be signed in to change notification settings - Fork 767
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
SidecarSet add upgrade state in pod annotation #1349
SidecarSet add upgrade state in pod annotation #1349
Conversation
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
c160ae1
to
4622ead
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1349 +/- ##
==========================================
+ Coverage 48.60% 49.87% +1.26%
==========================================
Files 152 160 +8
Lines 21333 24759 +3426
==========================================
+ Hits 10369 12348 +1979
- Misses 9828 11172 +1344
- Partials 1136 1239 +103
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4622ead
to
370b32b
Compare
370b32b
to
8d6f847
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.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8d6f847
to
5088706
Compare
5a14574
to
07b34d5
Compare
ea1ad54
to
2961add
Compare
d1cebb0
to
7c808cf
Compare
Signed-off-by: pingjiang <[email protected]>
7c808cf
to
40103b6
Compare
@@ -103,6 +103,13 @@ func (p *Processor) UpdateSidecarSet(sidecarSet *appsv1alpha1.SidecarSet) (recon | |||
return reconcile.Result{RequeueAfter: time.Second}, nil | |||
} | |||
|
|||
// check if pod finish sidecar container upgrade | |||
for _, pod := range pods { |
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.
Maybe we should make updatePodsSidecarHashState
after line-99 because some pods that already ready should be update state to Noamal
.
@@ -189,6 +196,53 @@ func (p *Processor) updatePods(control sidecarcontrol.SidecarControl, pods []*co | |||
return nil | |||
} | |||
|
|||
func (p *Processor) updatePodSidecarHashState(control sidecarcontrol.SidecarControl, pod *corev1.Pod) error { |
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.
Need some e2e tests?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/open |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ⅰ. Describe what this PR does
Ⅱ. Does this pull request fix one issue?
fixes #1312
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews