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
Provide a way to inject annotations into a Pod on admission:
Accept a map[string]func(*corev1.Pod) string argument 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 MutatingWebhookConfiguration to 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).
The text was updated successfully, but these errors were encountered:
Hello there!
I looked at your repository and it's really well managed ! I am looking for a way to make a MutatingWebhook but I cannot manage to make it work.
Will you add an example in a near future ?
Thanks for advance
Provide a way to inject annotations into a Pod on admission:
map[string]func(*corev1.Pod) string
argument so that the user can build names based on the Pod attributes (ObjectMeta, PodSpec, etc)MutatingWebhookConfiguration
to 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).The text was updated successfully, but these errors were encountered: