Skip to content

Commit 51e667a

Browse files
Merge pull request #55829 from cheftako/admissionResponseAlt
Automatic merge from submit-queue (batch tested with PRs 55908, 55829, 55293, 55653, 55665). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Admission response alt **What this PR does / why we need it**: This reflects the imperative nature of AdmissionReview. It adds AdmissionRequest and AdmissionResponse in place of status/spec. The AdmissionResponse the allows the mutating webhook to send back a json path with the mutated version of the requested object. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Ref #kubernetes/enhancements#492 **Special notes for your reviewer**:Port of caesarxuchao's fix with outcome of kubernetes/kubernetes#55729 **Release note**: ```release-note action-required: please update your admission webhook to use the latest [Admission API](https://github.com/kubernetes/api/tree/master/admission). `admission/v1alpha1#AdmissionReview` now contains `AdmissionRequest` and `AdmissionResponse`. `AdmissionResponse` includes a `Patch` field to allow mutating webhooks to send json patch to the apiserver. ``` Kubernetes-commit: cae4208e261089fb278f254092c399c807210897
2 parents e99c2b6 + 70660e5 commit 51e667a

File tree

7 files changed

+678
-423
lines changed

7 files changed

+678
-423
lines changed

Godeps/Godeps.json

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admission/v1alpha1/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ go_library(
1818
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
1919
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
2020
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
21+
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
2122
],
2223
)
2324

0 commit comments

Comments
 (0)