Skip to content

Commit 3551119

Browse files
committed
Update docs
1 parent 666c1b9 commit 3551119

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

crates/stackable-operator/src/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
/// ```

crates/stackable-webhook/src/servers/conversion.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)