Skip to content

Commit 92f14b3

Browse files
committed
Add some docs
1 parent 3ff8b2a commit 92f14b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/stackable-webhook/src/webhooks/mutating_webhook.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ pub struct MutatingWebhook<H, S, R> {
115115
impl<H, S, R> MutatingWebhook<H, S, R> {
116116
/// All webhooks need to set the admissionReviewVersions to `["v1"]`, as this mutating webhook
117117
/// only supports that version! A failure to do so will result in a panic.
118+
///
119+
/// Your [`MutatingWebhookConfiguration`] can contain 0..n webhooks, but it is recommended to
120+
/// only have a single entry in there, as the clientConfig of all entries will be set to the
121+
/// same service, port and HTTP path.
118122
pub fn new(
119123
mutating_webhook_configuration: MutatingWebhookConfiguration,
120124
handler: H,

0 commit comments

Comments
 (0)