Merge pull request #847 from enj/enj/i/tcr_log
token credential request: fix trace log kind
This commit is contained in:
commit
9851035e40
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user