Merge pull request #847 from enj/enj/i/tcr_log

token credential request: fix trace log kind
This commit is contained in:
Mo Khan 2021-09-21 12:36:16 -04:00 committed by GitHub
commit 9851035e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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()