-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
[PodSecurity] Implement metricRecorder for admission #104217
Conversation
Hi @jyz0309. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @tallclair PTAL~ I don't know if my implementation meets your requirements🙈 |
/assign @logicalhan @CatherineF-dev |
@dashpole: GitHub didn't allow me to assign the following users: CatherineF-dev. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
I don't know why verify-import test failed... Just need some help for this test.😳 |
@jyz0309 you'll most likely have to add these imports to kubernetes/staging/publishing/import-restrictions.yaml Lines 271 to 283 in f0e80a6
|
Thanks! |
staging/src/k8s.io/pod-security-admission/admission/admission.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/pod-security-admission/admission/admission.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/pod-security-admission/admission/admission.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/pod-security-admission/admission/admission_test.go
Outdated
Show resolved
Hide resolved
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.
Almost there!
staging/src/k8s.io/pod-security-admission/admission/admission.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/pod-security-admission/admission/admission.go
Outdated
Show resolved
Hide resolved
Signed-off-by: jyz0309 <[email protected]> use init to register metric Signed-off-by: jyz0309 <[email protected]> fix test Signed-off-by: jyz0309 <[email protected]> remove check Signed-off-by: jyz0309 <[email protected]> remove blank line Signed-off-by: jyz0309 <[email protected]> add allowedImports Signed-off-by: jyz0309 <[email protected]> Add mock recorder Signed-off-by: jyz0309 <[email protected]> format code Signed-off-by: jyz0309 <[email protected]> separe record into 3 function Signed-off-by: jyz0309 <[email protected]>
Signed-off-by: jyz0309 <[email protected]>
/retest-required |
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
/approve
Thanks!
I'll take the follow up, to add the other 2 metrics & unit tests.
Oh, maybe I can help add other 2 metrics, I don't add it in this PR just because I don't want to make this PR too complex to review🤣 |
It seems that this PR still need your approve to merge. Can you help me merge it? @tallclair Thanks a lot! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jyz0309, liggitt, tallclair 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 |
Signed-off-by: jyz0309 [email protected]
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
#103207
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: