-
Notifications
You must be signed in to change notification settings - Fork 754
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
On pod creation, if a new pod matches the SidecarSet update strategy … #1689
On pod creation, if a new pod matches the SidecarSet update strategy … #1689
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1689 +/- ##
==========================================
+ Coverage 47.91% 48.83% +0.92%
==========================================
Files 162 188 +26
Lines 23491 19298 -4193
==========================================
- Hits 11256 9425 -1831
+ Misses 11014 8641 -2373
- Partials 1221 1232 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
40bb7a7
to
88c866f
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.
/lgtm
3408a61
to
4fad01a
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 |
101fdb2
to
0c45705
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.
/lgtm
0c45705
to
38d34aa
Compare
…selector, the latest revision rather than that specified in the sidecarset.spec.injectionStrategy will be injected. Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
38d34aa
to
5fe5df1
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.
/lgtm
/approve |
…selector, the latest revision rather than that specified in the sidecarset.spec.injectionStrategy will be injected.
Ⅰ. Describe what this PR does
When a Pod is created, the SidecarSet's Webhook will first determine through the UpdateStrategy whether the Pod is undergoing a Sidecar canary upgrade. If so, it will directly inject the latest Sidecar and skip the logic of selecting a specified revision of the SidecarSet based on the InjectionStrategy.
Ⅱ. Does this pull request fix one issue?
fixes #1539
Ⅲ. Describe how to verify it
create the sidecarset
deploy the demo app
upgrade the sidecarset. because of env is changed, all pods will be skipped, nothing will happen
scale both the stable and canary deployments: replicas 1 -> 2
view images of sidecars injected: Only the newly created canary Pod is injected with sidecar version 8.9.0.
Ⅳ. Special notes for reviews