@@ -98,14 +98,11 @@ func (a *auditing) LogRequestObject(req *http.Request, info *request.RequestInfo
|
||||
|
||||
// Ignore the dryRun k8s request.
|
||||
if info.IsKubernetesRequest {
|
||||
values := req.URL.Query()
|
||||
if v, ok := values["dryRun"]; ok {
|
||||
if len(v) > 0 && v[0] == v1.DryRunAll {
|
||||
if len(req.URL.Query()["dryRun"]) != 0 {
|
||||
klog.V(6).Infof("ignore dryRun request %s", req.URL.Path)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
e := &auditv1alpha1.Event{
|
||||
Workspace: info.Workspace,
|
||||
|
||||
Reference in New Issue
Block a user