From a5f977300dde268eb721b2c6501c801efd925347 Mon Sep 17 00:00:00 2001 From: Dmitry Dodzin Date: Thu, 30 Jan 2025 11:54:10 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: MichaƂ Smolarek <34063647+Razz4780@users.noreply.github.com> --- mirrord/operator/src/crd/policy.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mirrord/operator/src/crd/policy.rs b/mirrord/operator/src/crd/policy.rs index a4b228e0f1e..2bd2ac18996 100644 --- a/mirrord/operator/src/crd/policy.rs +++ b/mirrord/operator/src/crd/policy.rs @@ -165,7 +165,7 @@ pub struct NetworkPolicy { pub incoming: IncomingNetworkPolicy, } -/// Incoming network operations policy that partialy mimics the mirrord network.incoming config. +/// Incoming network operations policy that partialy mimics the mirrord `network.incoming` config. #[derive(Clone, Default, Debug, Deserialize, Eq, PartialEq, Serialize, JsonSchema)] #[serde(rename_all = "camelCase")] pub struct IncomingNetworkPolicy { @@ -173,14 +173,14 @@ pub struct IncomingNetworkPolicy { pub http_filter: HttpFilterPolicy, } -/// Http filter policy that allows to specify any filter requirments that users must specify in -/// their config for a successful network steal +/// Http filter policy that allows to specify requirements for the HTTP filter used in a session. #[derive(Clone, Default, Debug, Deserialize, Eq, PartialEq, Serialize, JsonSchema)] #[serde(rename_all = "camelCase")] pub struct HttpFilterPolicy { - /// Require user's filter to match this regex if filter is provided. (this works in tandom with - /// `steal-without-filter` block to require the user to specify a header filter for network - /// steal feature) + /// Require the user's header filter to match this regex if such filter is provided. + /// + /// This works in tandem with the `steal-without-filter` block + /// to require that the user to specifies a header filter for the network steal feature. pub header_filter: Option, }