Validation
Reject an object with a message, or let it through with a warning.
| Kind | What it does | When it runs |
|---|---|---|
ClusterValidationPolicy | Accepts or rejects an object | Admission, before the object is stored |
ClusterMutationPolicy | Patches an object | Admission, before the object is stored |
ClusterGenerationPolicy | Creates objects | Background, after something is watched |
The first two answer the API server. The third runs in the background, on the leader. That difference decides what each one can do, and it is the reason they are separate kinds.
The pieces all of them share are under Concepts.
With --enable-special-labels, the requests Admitik receives carry a filter that leaves out any object
with this label:
metadata:
labels:
admitik.dev/ignore-admission: "true"
It is off by default because it lets whoever can write a label skip every policy that intercepts the resource.
Reject an object with a message, or let it through with a warning.
Patch an object before it is stored, and decide whether later policies see the result.
Write the objects that should exist because something else exists.
Copy an object into another namespace or another resource. In progress.
Delete objects that should no longer exist. In progress.