Add option to k8s apiserver to reject incoming requests upon audit failure
This commit is contained in:
@@ -108,8 +108,9 @@ func (f auditChecker) LevelAndStages(attrs authorizer.Attributes) (auditinternal
|
||||
|
||||
type auditSinkFunc func(events ...*auditinternal.Event)
|
||||
|
||||
func (f auditSinkFunc) ProcessEvents(events ...*auditinternal.Event) {
|
||||
func (f auditSinkFunc) ProcessEvents(events ...*auditinternal.Event) bool {
|
||||
f(events...)
|
||||
return true
|
||||
}
|
||||
|
||||
func (auditSinkFunc) Run(stopCh <-chan struct{}) error {
|
||||
|
Reference in New Issue
Block a user