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

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) {
t := trace.FromContext(ctx).Nest("create", trace.Field{
Key: "kind",
Value: obj.GetObjectKind().GroupVersionKind().Kind,
Value: "TokenCredentialRequest",
})
defer t.Log()