File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ All notable changes to this project will be documented in this file.
2828
2929### Added
3030
31- - Instrument ` WebhookServer ` with ` AxumTraceLayer ` , add static healthcheck without instrumentation ([ #758 ] ).
32- - Add shutdown signal hander for the ` WebhookServer ` ([ #767 ] ).
31+ - Instrument ` WebhookServer ` with ` AxumTraceLayer ` , add static health-check without instrumentation ([ #758 ] ).
32+ - Add shutdown signal handler for the ` WebhookServer ` ([ #767 ] ).
3333
3434### Changed
3535
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ pub const DEFAULT_HTTPS_PORT: u16 = 8443;
88/// The default IP address `127.0.0.1` the webhook server binds to.
99pub const DEFAULT_IP_ADDRESS : IpAddr = IpAddr :: V4 ( Ipv4Addr :: new ( 127 , 0 , 0 , 1 ) ) ;
1010
11- /// The default socket address `127.0.0.1:8443` the webhook server vinds to.
11+ /// The default socket address `127.0.0.1:8443` the webhook server binds to.
1212pub const DEFAULT_SOCKET_ADDR : SocketAddr = SocketAddr :: new ( DEFAULT_IP_ADDRESS , DEFAULT_HTTPS_PORT ) ;
Original file line number Diff line number Diff line change 11//! Utility types and functions to easily create ready-to-use webhook servers
22//! which can handle different tasks, for example CRD conversions. All webhook
3- //! servers use HTTPS by defaultThis library is fully compatible with the
3+ //! servers use HTTPS by default. This library is fully compatible with the
44//! [`tracing`] crate and emits debug level tracing data.
55//!
66//! Most users will only use the top-level exported generic [`WebhookServer`]
7- //! which enables complete control over the [Router] which handles registering
7+ //! which enables complete control over the [` Router` ] which handles registering
88//! routes and their handler functions.
99//!
1010//! ```
2020//! only required parameters are a conversion handler function and [`Options`].
2121//!
2222//! This library additionally also exposes lower-level structs and functions to
23- //! enable complete controll over these details if needed.
23+ //! enable complete control over these details if needed.
2424//!
2525//! [1]: crate::servers::ConversionWebhookServer
2626use axum:: { Router , routing:: get} ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ pub enum Error {
6262/// Custom implementation of [`std::cmp::PartialEq`] because some inner types
6363/// don't implement it.
6464///
65- /// Note that this implementation is restritced to testing because there are
65+ /// Note that this implementation is restricted to testing because there are
6666/// variants that use [`stackable_certs::ca::Error`] which only implements
6767/// [`PartialEq`] for tests.
6868#[ cfg( test) ]
@@ -84,7 +84,7 @@ impl PartialEq for Error {
8484 }
8585}
8686
87- /// A server which terminates TLS connections and allows clients to commnunicate
87+ /// A server which terminates TLS connections and allows clients to communicate
8888/// via HTTPS with the underlying HTTP router.
8989pub struct TlsServer {
9090 config : Arc < ServerConfig > ,
@@ -96,7 +96,7 @@ impl TlsServer {
9696 #[ instrument( name = "create_tls_server" , skip( router) ) ]
9797 pub async fn new ( socket_addr : SocketAddr , router : Router ) -> Result < Self > {
9898 // NOTE(@NickLarsenNZ): This code is not async, and does take some
99- // non-negligable amount of time to complete (moreso in debug ).
99+ // non-negligible amount of time to complete (moreso in debug).
100100 // We run this in a thread reserved for blocking code so that the Tokio
101101 // executor is able to make progress on other futures instead of being
102102 // blocked.
You can’t perform that action at this time.
0 commit comments