-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Agnhost webhook sidecar #87385
Agnhost webhook sidecar #87385
Conversation
4f87301
to
0c5b444
Compare
/retest |
/assign @listx |
/hold |
5d3d1c2
to
c4d08d3
Compare
/hold cancel |
/assign @liggitt kubernetes/test/e2e/apimachinery/webhook.go Line 1059 in 2808d71
|
/hold This does not look like a valid change to the existing agnhost function. If you want an unconditional idempotent sidecar injector, that seems like a separate function that should be added, not something the current function should be modified into |
I'm also ok-sh with that. |
c4d08d3
to
374c161
Compare
de722d3
to
db6eed8
Compare
test/images/agnhost/webhook/pods.go
Outdated
|
||
func mutatePodsSidecar(ar v1.AdmissionReview) *v1.AdmissionResponse { | ||
if sidecarImage == "" { | ||
klog.Fatal("No image specified by the sidecar-image parameter") |
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 will exit the webhook pod, but not surface back to the test... to return an error visible to the test, you would need to reject admission with an error (set Allowed=false, and add a status message)
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.
Done.
db6eed8
to
3593fc6
Compare
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: krzysied, liggitt 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 |
based on this I'm just removing hold /hold cancel |
/retest |
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
/retest Review the full test history for this PR. Silence the bot with an |
/retest |
/test pull-kubernetes-e2e-kind |
/retest |
/test pull-kubernetes-e2e-g |
/retest Review the full test history for this PR. Silence the bot with an |
2 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/test pull-kubernetes-e2e-gce-100-performance |
/test pull-kubernetes-verify |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds injecting sidecar functionality to agnhost.
Which issue(s) this PR fixes:
Fixes #87383
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: