knative / knative/pkg

[webhook] logger in context should be annotated with webhook type

Open
#1,131 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/cleanup lifecycle/frozen
Dominant language
Go
Stars
276
Forks
344
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Issue

When debugging some defaulting webhooks instrumenting SetDefaults on some types had the side-effect of logging invocations from the conversion webhook.

It was not obvious which webhook was doing the invocation of SetDefaults when looking at the logs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the defaulting webhook logging around SetDefaults and the conversion webhook invocation. Identify where the logger context is created, then verify that resulting logs distinguish the webhook type involved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.