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
fix flushlogs not working together with exit in staging repos #104776
fix flushlogs not working together with exit in staging repos #104776
Conversation
/ok-to-test |
/assign @cheftako |
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.
Thank you for helping
Also, in this PR, please check the below.
#104775 (comment)
cfa72fd
to
49ed3ce
Compare
49ed3ce
to
5a8c6bb
Compare
/approve |
4f57d27
to
b35eec2
Compare
New changes are detected. LGTM label has been removed. |
staging/src/k8s.io/pod-security-admission/cmd/webhook/server/server.go
Outdated
Show resolved
Hide resolved
b35eec2
to
cb5196f
Compare
@kerthcet could you please rebase? |
cb5196f
to
45b5522
Compare
/approve |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dashpole, kerthcet, tallclair 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 |
kindly ping @dims |
errs := o.Validate() | ||
if len(errs) != 0 { | ||
fmt.Fprintf(os.Stderr, "%v\n", errs) | ||
os.Exit(1) |
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.
FYI
os.Exit(1) |
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.
correct me if not, os.Exit(1)
is the expected behavior if glog.Fatal
calls, but we should not exit
when error or warning happens, so I think this refactor has some meanings more or less.
Signed-off-by: kerthcet <kerthcet@gmail.com>
45b5522
to
ea8805a
Compare
@kerthcet: PR needs rebase. 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. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Signed-off-by: kerthcet kerthcet@gmail.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
fix flushlogs not working together with exit in staging repos
Which issue(s) this PR fixes:
Fixes ##102231
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: