@@ -45,7 +45,6 @@ pub enum MutatingWebhookError {
4545/// ```
4646/// use std::sync::Arc;
4747///
48- /// use k8s_openapi::api::admissionregistration::v1::MutatingWebhook;
4948/// use k8s_openapi::api::admissionregistration::v1::MutatingWebhookConfiguration;
5049/// use k8s_openapi::api::apps::v1::StatefulSet;
5150///
@@ -54,7 +53,7 @@ pub enum MutatingWebhookError {
5453/// use stackable_operator::kube::core::admission::{AdmissionRequest, AdmissionResponse};
5554/// use stackable_operator::kvp::Label;
5655/// use stackable_webhook::WebhookServer;
57- /// use stackable_webhook::servers::MutatingWebhookServer ;
56+ /// use stackable_webhook::servers::MutatingWebhook ;
5857///
5958/// # async fn docs() {
6059/// // The Kubernetes client
@@ -64,7 +63,7 @@ pub enum MutatingWebhookError {
6463/// // Read in from user input, e.g. CLI arguments
6564/// let disable_restarter_mutating_webhook = false;
6665///
67- /// let mutating_webhook = Box::new(MutatingWebhookServer ::new(
66+ /// let mutating_webhook = Box::new(MutatingWebhook ::new(
6867/// get_mutating_webhook_configuration(),
6968/// my_handler,
7069/// ctx,
@@ -82,7 +81,7 @@ pub enum MutatingWebhookError {
8281/// let webhook_name = "pod-labeler.stackable.tech";
8382///
8483/// MutatingWebhookConfiguration {
85- /// webhooks: Some(vec![MutatingWebhook {
84+ /// webhooks: Some(vec![k8s_openapi::api::admissionregistration::v1:: MutatingWebhook {
8685/// // This is checked by the stackable_webhook code
8786/// admission_review_versions: vec!["v1".to_owned()],
8887/// ..Default::default()
0 commit comments