You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Mutating defines if the Admission should create a MutatingWebhookConfiguration or a ValidatingWebhookConfiguration.
39
+
Mutatingbool`json:"mutating,omitempty"`
40
+
41
+
// Template contains the Jsonnet code to decide the admission result.
42
+
// Admission responses should be created using the `espejote.libsonnet` library.
43
+
// `esp.ALPHA.admission.allowed("Nice job!")`, `esp.ALPHA.admission.denied("Bad job!")`, `esp.ALPHA.admission.patched("added user annotation", [jsonPatchOp("add", "/metadata/annotations/user", "tom")])` are examples of valid responses.
44
+
// The template can reference JsonnetLibrary objects by importing them.
45
+
// JsonnetLibrary objects have the following structure:
46
+
// - "espejote.libsonnet": The built in library for accessing the context and trigger information.
47
+
// - "lib/<NAME>/<KEY>" libraries in the shared library namespace. The name corresponds to the name of the JsonnetLibrary object and the key to the key in the data field.
48
+
// The namespace is configured at controller startup and normally points to the namespace of the controller.
49
+
// Note that ClusterAdmission cannot reference non-library JsonnetLibrary objects.
0 commit comments