File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
crates/stackable-webhook/src Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,16 @@ impl ConversionWebhookServer {
106
106
/// # async fn test() {
107
107
/// let crds_and_handlers = [
108
108
/// (
109
- /// S3Connection::merged_crd(S3ConnectionVersion::V1Alpha1).expect("failed to merge S3Connection CRD"),
109
+ /// S3Connection::merged_crd(S3ConnectionVersion::V1Alpha1)
110
+ /// .expect("failed to merge S3Connection CRD"),
110
111
/// S3Connection::try_convert as fn(ConversionReview) -> ConversionReview,
111
112
/// ),
112
113
/// ];
113
114
///
114
115
/// const OPERATOR_NAME: &str = "PRODUCT_OPERATOR";
115
116
/// let client = Client::try_default().await.expect("failed to create Kubernetes client");
116
- /// // Normally you would get this from the CLI arguments in `ProductOperatorRun::operator_environment`
117
+ /// // Normally you would get this from the CLI arguments in
118
+ /// // `ProductOperatorRun::operator_environment`
117
119
/// let operator_environment = OperatorEnvironmentOpts {
118
120
/// operator_namespace: "stackable-operator".to_string(),
119
121
/// operator_service_name: "product-operator".to_string(),
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ pub enum CertificateResolverError {
50
50
TokioSpawnBlocking { source : tokio:: task:: JoinError } ,
51
51
}
52
52
53
+ /// This struct serves as [`ResolvesServerCert`] to always hand out the current certificate for TLS
54
+ /// client connections.
55
+ ///
56
+ /// It offers the [`Self::rotate_certificate`] function to create a fresh certificate and basically
57
+ /// hot-reload the certificate in the running webhook.
53
58
#[ derive( Debug ) ]
54
59
pub struct CertificateResolver {
55
60
/// Using a [`ArcSwap`] (over e.g. [`tokio::sync::RwLock`]), so that we can easily
You can’t perform that action at this time.
0 commit comments