Skip to content

Commit

Permalink
(fix): incorrect logs in controlplane (kubernetes-sigs#331)
Browse files Browse the repository at this point in the history
This PR fixes minor typos in controlplane logs and comment docs of dp
components.
  • Loading branch information
k8s-ci-robot authored Jan 13, 2025
2 parents f9d7780 + a9419d7 commit 0755799
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controlplane/src/gateway_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub async fn reconcile(gateway: Arc<Gateway>, ctx: Arc<Context>) -> Result<Actio
service = create_svc_for_gateway(ctx.clone(), gateway.as_ref()).await?;
}

// invalid_lb_condition is a Condition that signfies that the Loadbalancer service is invalid.
// invalid_lb_condition is a Condition that signifies that the Loadbalancer service is invalid.
let mut invalid_lb_condition = metav1::Condition {
last_transition_time: metav1::Time(Utc::now()),
observed_generation: gateway.meta().generation,
Expand Down
2 changes: 1 addition & 1 deletion controlplane/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub async fn run() {
};

if let Err(error) = gateway_controller::controller(ctx).await {
error!("failed to start Gateway contoller: {error:?}");
error!("failed to start Gateway controller: {error:?}");
std::process::exit(1);
}
}
2 changes: 1 addition & 1 deletion dataplane/api-server/src/netutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::net::Ipv4Addr;
const ERR_NO_IFINDEX: &str = "no ifindex found to route";
const ERR_PACKET_CONSTRUCTION: &str = "construct packet failed";

/// Returns an network interface index for a Ipv4 address (like the command `ip route get to $IP`)
/// Returns a network interface index for an IPv4 address (like the command `ip route get to $IP`)
pub fn if_index_for_routing_ip(ip_addr: Ipv4Addr) -> Result<u32, Error> {
let socket = Socket::new(NETLINK_ROUTE)?;
socket.connect(&SocketAddr::new(0, 0))?;
Expand Down

0 comments on commit 0755799

Please sign in to comment.