token credential request: fix trace log kind

Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
Monis Khan 2021-09-20 15:34:05 -04:00
parent 43ba6ba686
commit e65817ad5b
No known key found for this signature in database
GPG Key ID: 52C90ADA01B269B8

View File

@ -87,7 +87,7 @@ func (*REST) Categories() []string {
func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) { func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) {
t := trace.FromContext(ctx).Nest("create", trace.Field{ t := trace.FromContext(ctx).Nest("create", trace.Field{
Key: "kind", Key: "kind",
Value: obj.GetObjectKind().GroupVersionKind().Kind, Value: "TokenCredentialRequest",
}) })
defer t.Log() defer t.Log()