File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
9
9
- Add ` CustomResourceDefinitionMaintainer ` which applies and patches CRDs triggered by TLS
10
10
certificate rotations of the ` ConversionWebhookServer ` . It additionally provides a ` oneshot `
11
- channel which can be used to trigger creation/patching of any default custom resources deployed by
11
+ channel which can for example be used to trigger creation/patching of any custom resources deployed by
12
12
the operator ([ #1099 ] ).
13
13
- Add a ` Client::create_if_missing ` associated function to create a resource if it doesn't
14
14
exist ([ #1099 ] ).
Original file line number Diff line number Diff line change @@ -220,10 +220,10 @@ impl CustomResourceDefinitionMaintainer {
220
220
// After the reconciliation of the CRDs, the initial reconcile heartbeat is sent out
221
221
// via the oneshot channel.
222
222
if let Some ( initial_reconcile_tx) = initial_reconcile_tx. take ( ) {
223
- match initial_reconcile_tx . send ( ( ) ) {
224
- Ok ( _ ) => { }
225
- Err ( _ ) => return SendInitialReconcileHeartbeatSnafu . fail ( ) ,
226
- }
223
+ ensure ! (
224
+ initial_reconcile_tx . send ( ( ) ) . is_ok ( ) ,
225
+ SendInitialReconcileHeartbeatSnafu
226
+ ) ;
227
227
}
228
228
}
229
229
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ impl WebhookServer {
97
97
pub const DEFAULT_HTTPS_PORT : u16 = 8443 ;
98
98
/// The default IP address [`Ipv4Addr::UNSPECIFIED`] (`0.0.0.0`) the webhook server binds to,
99
99
/// which represents binding on all network addresses.
100
+ //
101
+ // TODO: We might want to switch to `Ipv6Addr::UNSPECIFIED)` here, as this *normally* binds to IPv4
102
+ // and IPv6. However, it's complicated and depends on the underlying system...
103
+ // If we do so, we should set `set_only_v6(false)` on the socket to not rely on system defaults.
100
104
pub const DEFAULT_LISTEN_ADDRESS : IpAddr = IpAddr :: V4 ( Ipv4Addr :: UNSPECIFIED ) ;
101
105
/// The default socket address `0.0.0.0:8443` the webhook server binds to.
102
106
pub const DEFAULT_SOCKET_ADDRESS : SocketAddr =
You can’t perform that action at this time.
0 commit comments