-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Register some audit annotations #47451
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
Register some audit annotations #47451
Conversation
/kind feature |
JFYI : annotation |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
/sig api-machinery |
@sftim @katcosgrove PTAL |
/retitle Register some audit annotations |
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. I have some comments and suggestions.
Sorry it took a while; we're short on reviewers.
@@ -31,7 +31,7 @@ request used a deprecated API version. | |||
|
|||
Example: `k8s.io/removed-release: "1.22"` | |||
|
|||
Value **must** be in the format "<major>.<minor>". It is set to target the removal release | |||
Value **must** be in the format "\<MAJOR>\.\<MINOR>\". It is set to target the removal release |
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.
Why this change?
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.
When i tested the page . there was blank spaces instead of "." that's why
|
||
Example: `apiserver.latency.k8s.io/decode-response-object: "450.6649ns"` | ||
|
||
This annotation records the decoding time of response object. |
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 annotation records the time taken to … (what goes here)?
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 annotation records the time taken to decode the response object.
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.
Is it one of these?
This annotation records the decoding time of response object. | |
This annotation records the time taken to decode the response received from the storage layer (etcd). |
This annotation records the decoding time of response object. | |
This annotation records the time that elapses whilst the API server is decoding the response that | |
it is about to send. |
?
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.
It's the time taken for both in a way .
For reference : https://github.com/tnorlin/kubernetes/blob/851cf43a35862aeeafc4a0966f7d1e0836f675e4/staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration.go#L156
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 is latency incurred inside the function that takes an object returned from the underlying storage layer (etcd) and performs decoding of the response object.
content/en/docs/reference/labels-annotations-taints/audit-annotations.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/labels-annotations-taints/audit-annotations.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/labels-annotations-taints/audit-annotations.md
Show resolved
Hide resolved
No worries, I will wait for further comments on other raised PRs as well. there are more like this still waiting for reviews |
content/en/docs/reference/labels-annotations-taints/audit-annotations.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/labels-annotations-taints/audit-annotations.md
Outdated
Show resolved
Hide resolved
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 |
I might have missed this one, working on it currently , will update by tomorrow morning. |
…8s.io/decode-response-object, apiserver.latency.k8s.io/apf-queue-wait Signed-off-by: Ritikaa96 <[email protected]>
Signed-off-by: Ritikaa96 <[email protected]>
ad38d4f
to
36e798b
Compare
@katcosgrove @sftim PTAL |
Just a reminder: @sftim @katcosgrove @aramase |
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.
/lgtm
|
||
Example: `apiserver.latency.k8s.io/etcd: "4.730661757s"` | ||
|
||
This annotation indiactes the measure of latency incurred inside the storage layer, |
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 annotation indiactes the measure of latency incurred inside the storage layer, | |
This annotation indicates the measure of latency incurred inside the storage layer, |
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.
Minor nit - can be fixed in a follow-up PR. Or if @Ritikaa96 , you're willing to push the changes within this week - happy to get this merged ASAP.
LGTM label has been added. Git tree hash: 34454e15eba3b740c8dd68bc017f354ba02980a7
|
@kubernetes/sig-auth-pr-reviews PTAL and advise if this is technically accurate? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: reylejano The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
adding annotation:
apiserver.latency.k8s.io/etcd,
apiserver.latency.k8s.io/decode-response-object,
apiserver.latency.k8s.io/apf-queue-wait
Also corrected the description of annotation : k8s.io/removed-release
In the page Audit Annotations
Partially fixes: #29479