-
Notifications
You must be signed in to change notification settings - Fork 771
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 inject history revision #1021
Conversation
podIn := pod1.DeepCopy() | ||
podOut := podIn.DeepCopy() | ||
decoder, _ := admission.NewDecoder(scheme.Scheme) | ||
client := fake.NewFakeClient(env...) |
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.
SA1019: fake.NewFakeClient is deprecated: Please use NewClientBuilder instead.
Reply with "@sonatype-lift help" for info about LiftBot commands.
Reply with "@sonatype-lift ignore" to tell LiftBot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell LiftBot to leave out all the findings from this PR and from the status bar in Github.
When talking to LiftBot, you need to refresh the page to see its response. Click here to get to know more about LiftBot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
} | ||
|
||
for name, sidecarSet := range errorCases { | ||
allErrs := validateSidecarSetSpec(&sidecarSet, field.NewPath("spec")) | ||
fakeClient := fake.NewFakeClientWithScheme(testScheme, SidecarSetRevisions...) |
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.
SA1019: fake.NewFakeClientWithScheme is deprecated: Please use NewClientBuilder instead.
Reply with "@sonatype-lift help" for info about LiftBot commands.
Reply with "@sonatype-lift ignore" to tell LiftBot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell LiftBot to leave out all the findings from this PR and from the status bar in Github.
When talking to LiftBot, you need to refresh the page to see its response. Click here to get to know more about LiftBot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
@@ -20,19 +20,20 @@ | |||
"context" | |||
"encoding/json" | |||
"fmt" |
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.
goimports: File is not goimports
-ed
Reply with "@sonatype-lift help" for info about LiftBot commands.
Reply with "@sonatype-lift ignore" to tell LiftBot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell LiftBot to leave out all the findings from this PR and from the status bar in Github.
When talking to LiftBot, you need to refresh the page to see its response. Click here to get to know more about LiftBot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
0fff9e3
to
3f73b49
Compare
Codecov Report
@@ Coverage Diff @@
## master #1021 +/- ##
==========================================
- Coverage 49.63% 49.15% -0.49%
==========================================
Files 124 124
Lines 12078 12253 +175
==========================================
+ Hits 5995 6023 +28
- Misses 5167 5306 +139
- Partials 916 924 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
apis/apps/defaults/v1alpha1.go
Outdated
|
||
func SetDefaultInjectRevision(strategy *v1alpha1.SidecarSetInjectionStrategy) { | ||
if strategy.Revision != nil { | ||
if len(strategy.Revision.Policy) == 0 { |
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.
if strategy.Revision.Policy == “”
b06bdcf
to
00f4d80
Compare
d433066
to
3a4bfd9
Compare
/cc @pigletfly |
@veophi: GitHub didn't allow me to request PR reviews from the following users: pigletfly. Note that only openkruise members and repo collaborators can review this PR, and authors cannot review their own PRs. In 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 kubernetes/test-infra repository. |
/cc @willise |
@veophi: GitHub didn't allow me to request PR reviews from the following users: willise. Note that only openkruise members and repo collaborators can review this PR, and authors cannot review their own PRs. In 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 kubernetes/test-infra repository. |
364e6f6
to
d7f3fa3
Compare
9a5e279
to
bd59872
Compare
/lgtm |
Signed-off-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com>
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: furykerry 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: mingzhou.swx <mingzhou.swx@alibaba-inc.com> Co-authored-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com> Signed-off-by: Liu Zhenwei <zwliu@thoughtworks.com>
Co-authored-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com>
Signed-off-by: mingzhou.swx mingzhou.swx@alibaba-inc.com
Ⅰ. Describe what this PR does
Allow SidecarSet inject specific history sidecar to Pods.
issue: #783
Ⅱ. Does this pull request fix one issue?
fixes #710