From d94925af8854031f1548466c655afd3119613785 Mon Sep 17 00:00:00 2001 From: hzxuzhonghu Date: Fri, 23 Feb 2018 09:27:37 +0800 Subject: [PATCH] fix typo and remove inaccurate TODO --- staging/src/k8s.io/apiserver/pkg/audit/request.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/audit/request.go b/staging/src/k8s.io/apiserver/pkg/audit/request.go index d42feccfc8e..47c0fca80fa 100644 --- a/staging/src/k8s.io/apiserver/pkg/audit/request.go +++ b/staging/src/k8s.io/apiserver/pkg/audit/request.go @@ -127,7 +127,6 @@ func LogRequestObject(ae *auditinternal.Event, obj runtime.Object, gvr schema.Gr ae.ObjectRef.ResourceVersion = meta.GetResourceVersion() } } - // TODO: ObjectRef should include the API group. if len(ae.ObjectRef.APIVersion) == 0 { ae.ObjectRef.APIGroup = gvr.Group ae.ObjectRef.APIVersion = gvr.Version @@ -153,7 +152,7 @@ func LogRequestObject(ae *auditinternal.Event, obj runtime.Object, gvr schema.Gr } } -// LogRquestPatch fills in the given patch as the request object into an audit event. +// LogRequestPatch fills in the given patch as the request object into an audit event. func LogRequestPatch(ae *auditinternal.Event, patch []byte) { if ae == nil || ae.Level.Less(auditinternal.LevelRequest) { return