Commit 9a29583f authored by Dawn Chen's avatar Dawn Chen

Merge pull request #12064 from AnanyaKumar/patch-2

Update admission_control.md
parents ec7d0a98 15884e14
...@@ -98,16 +98,17 @@ func init() { ...@@ -98,16 +98,17 @@ func init() {
Invocation of admission control is handled by the **APIServer** and not individual **RESTStorage** implementations. Invocation of admission control is handled by the **APIServer** and not individual **RESTStorage** implementations.
This design assumes that **Issue 297** is adopted, and as a consequence, the general framework of the APIServer request/response flow This design assumes that **Issue 297** is adopted, and as a consequence, the general framework of the APIServer request/response flow will ensure the following:
will ensure the following:
1. Incoming request 1. Incoming request
2. Authenticate user 2. Authenticate user
3. Authorize user 3. Authorize user
4. If operation=create|update, then validate(object) 4. If operation=create|update|delete|connect, then admission.Admit(requestAttributes)
5. If operation=create|update|delete, then admission.Admit(requestAttributes) - invoke each admission.Interface object in sequence
a. invoke each admission.Interface object in sequence 5. Case on the operation:
6. Object is persisted - If operation=create|update, then validate(object) and persist
- If operation=delete, delete the object
- If operation=connect, exec
If at any step, there is an error, the request is canceled. If at any step, there is an error, the request is canceled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment