-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document apiserver.latency.k8s.io/total audit annotation #47448
base: main
Are you sure you want to change the base?
Document apiserver.latency.k8s.io/total audit annotation #47448
Conversation
Signed-off-by: Ritikaa96 <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/sig cli |
Information taken from kep and code file, specifically audit.go |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
i added in flow to my other work |
/retitle Document apiserver.latency.k8s.io/total audit annotation |
/triage accepted /assign nilekhc |
/sig api-machinery |
Hello Prow. Is this now OK to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks; please see feedback.
This value shows total latency incurred in components within the apiserver. Please note that the latency is recorded in | ||
annotation only when the total latency of the given request exceeds 500ms; This is in keeping with the | ||
traces in rest/handlers for create, delete, update, get, list, and delete collection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This value shows total latency incurred in components within the apiserver. Please note that the latency is recorded in | |
annotation only when the total latency of the given request exceeds 500ms; This is in keeping with the | |
traces in rest/handlers for create, delete, update, get, list, and delete collection. | |
This annotation records total latency incurred in components within the API server. | |
The API server only adds this audit annotation for requests where the total latency for handling | |
and responding to that request exceeds a threshold; in Kubernetes {{< skew currentVersion >}} | |
that threshold is 500ms (half a second). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks clean , thanks for the suggestion.
## authorization.k8s.io/decision | ||
|
||
Example: `authorization.k8s.io/decision: "forbid"` | ||
|
||
This annotation indicates whether or not a request was authorized in Kubernetes audit logs. | ||
Value must be **forbid** or **allow**. This annotation indicates whether or not a request was authorized in Kubernetes audit logs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change does not align with the PR title and description. I think it belongs in a separate commit and possibly a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should i add a different PR? In case it is needed i'll add another PR for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two PRs is easiest.
Signed-off-by: Ritikaa96 <[email protected]>
I have added different pr for improvement on already documented annotation. Is there any other change needed here? |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
Documented apiserver.latency.k8s.io/total annotation in page https://kubernetes.io/docs/reference/labels-annotations-taints/audit-annotations/
also added values details in
authorization.k8s.io/decision
annotation.Partially Fixes: #29479