-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Provide a way to inject annotations into a Pod on admission:
- Accept a
map[string]func(*corev1.Pod) stringargument so that the user can build names based on the Pod attributes (ObjectMeta, PodSpec, etc) - Use https://github.com/evanphx/json-patch for testing: take a Pod, serialize, apply the patch, and deserialize again to verify the injected annotations were applied.
- Add a sample
MutatingWebhookConfigurationto demonstrate usage.
Alternatively we could just provide a metav1.ObjectMeta to the user/caller, which might be sufficient for any dynamic annotation generation & more stable (w.r.t. API changes).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request