-
Notifications
You must be signed in to change notification settings - Fork 4.8k
use default handler #16178
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
use default handler #16178
Conversation
| handler = apirequest.WithRequestContext(handler, genericConfig.RequestContextMapper) | ||
| handler = apiserverfilters.WithPanicRecovery(handler) | ||
| /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| handler = apiserver.DefaultBuildHandlerChain(handler, genericConfig) |
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.
@sttts as a past rebaser, this should make you very happy.
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.
❤️
|
|
||
| // we don't use this anymore | ||
| genericConfig.LegacyAuditWriter = nil | ||
| if masterConfig.AuditConfig.Enabled { |
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.
@soltysh review carefully
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.
👍
| for k, v := range masterConfig.KubernetesMasterConfig.APIServerArguments { | ||
| args[k] = v | ||
| } | ||
| if masterConfig.AuditConfig.Enabled { |
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.
@soltysh review carefully
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.
👍
b5369f1 to
0413dfb
Compare
| for k, v := range masterConfig.KubernetesMasterConfig.APIServerArguments { | ||
| args[k] = v | ||
| } | ||
| if masterConfig.AuditConfig.Enabled { |
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.
👍
| return nil, err | ||
| } | ||
|
|
||
| // we don't use this anymore |
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.
I'll probably update this comment to explicitly mention we don't use legacy audit at all. All auditing in origin uses the new advanced feature.
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.
done
|
|
||
| // we don't use this anymore | ||
| genericConfig.LegacyAuditWriter = nil | ||
| if masterConfig.AuditConfig.Enabled { |
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.
👍
|
Rebase and ship it! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, soltysh The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
0413dfb to
06ef357
Compare
06ef357 to
c16056e
Compare
|
/retest |
1 similar comment
|
/retest |
|
Automatic merge from submit-queue (batch tested with PRs 14825, 15756, 16178, 16188, 16189) |
Builds on already lgtm'd pulls. Only the last commit is unique.
The biggest impact is to audit.
@soltysh @sttts you know want it before dcut today. :)