File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
stackable-webhook/src/servers Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ pub enum Command<Run: Args = ProductOperatorRun> {
208208/// operator_namespace: "stackable-operators".to_string(),
209209/// operator_service_name: "foo-operator".to_string(),
210210/// },
211+ /// disable_crd_maintenance: false,
211212/// },
212213/// }));
213214/// ```
Original file line number Diff line number Diff line change @@ -124,14 +124,18 @@ impl ConversionWebhookServer {
124124 /// use stackable_operator::{
125125 /// kube::Client,
126126 /// crd::s3::{S3Connection, S3ConnectionVersion},
127- /// cli::OperatorEnvironmentOptions ,
127+ /// cli::ProductOperatorRun ,
128128 /// };
129129 ///
130130 /// # async fn test() {
131131 /// // Things that should already be in you operator:
132132 /// const OPERATOR_NAME: &str = "product-operator";
133133 /// let client = Client::try_default().await.expect("failed to create Kubernetes client");
134- /// let operator_environment = OperatorEnvironmentOptions::parse();
134+ /// let ProductOperatorRun {
135+ /// operator_environment,
136+ /// disable_crd_maintenance,
137+ /// ..
138+ /// } = ProductOperatorRun::parse();
135139 ///
136140 /// let crds_and_handlers = [
137141 /// (
@@ -155,6 +159,7 @@ impl ConversionWebhookServer {
155159 /// crds_and_handlers,
156160 /// options,
157161 /// client,
162+ /// !disable_crd_maintenance,
158163 /// )
159164 /// .await
160165 /// .expect("failed to create ConversionWebhookServer");
You can’t perform that action at this time.
0 commit comments