@@ -116,7 +116,7 @@ use product_config::ProductConfigManager;
116
116
use snafu:: { ResultExt , Snafu } ;
117
117
use stackable_telemetry:: tracing:: TelemetryOptions ;
118
118
119
- use crate :: { namespace:: WatchNamespace , utils:: cluster_info:: KubernetesClusterInfoOpts } ;
119
+ use crate :: { namespace:: WatchNamespace , utils:: cluster_info:: KubernetesClusterInfoOptions } ;
120
120
121
121
pub const AUTHOR : & str =
"Stackable GmbH - [email protected] " ;
122
122
@@ -163,10 +163,10 @@ pub enum Command<Run: Args = ProductOperatorRun> {
163
163
/// Can be embedded into an extended argument set:
164
164
///
165
165
/// ```rust
166
- /// # use stackable_operator::cli::{Command, OperatorEnvironmentOpts, ProductOperatorRun, ProductConfigPath};
166
+ /// # use stackable_operator::cli::{Command, OperatorEnvironmentOptions, ProductOperatorRun, ProductConfigPath};
167
+ /// # use stackable_operator::{namespace::WatchNamespace, utils::cluster_info::KubernetesClusterInfoOptions};
168
+ /// # use stackable_telemetry::tracing::TelemetryOptions;
167
169
/// use clap::Parser;
168
- /// use stackable_operator::{namespace::WatchNamespace, utils::cluster_info::KubernetesClusterInfoOpts};
169
- /// use stackable_telemetry::tracing::TelemetryOptions;
170
170
///
171
171
/// #[derive(clap::Parser, Debug, PartialEq, Eq)]
172
172
/// struct Run {
@@ -197,12 +197,12 @@ pub enum Command<Run: Args = ProductOperatorRun> {
197
197
/// common: ProductOperatorRun {
198
198
/// product_config: ProductConfigPath::from("bar".as_ref()),
199
199
/// watch_namespace: WatchNamespace::One("foobar".to_string()),
200
- /// telemetry_arguments : TelemetryOptions::default(),
201
- /// cluster_info_opts: KubernetesClusterInfoOpts {
200
+ /// telemetry : TelemetryOptions::default(),
201
+ /// cluster_info: KubernetesClusterInfoOptions {
202
202
/// kubernetes_cluster_domain: None,
203
203
/// kubernetes_node_name: "baz".to_string(),
204
204
/// },
205
- /// operator_environment: OperatorEnvironmentOpts {
205
+ /// operator_environment: OperatorEnvironmentOptions {
206
206
/// operator_namespace: "stackable-operators".to_string(),
207
207
/// operator_service_name: "foo-operator".to_string(),
208
208
/// },
@@ -239,13 +239,13 @@ pub struct ProductOperatorRun {
239
239
pub watch_namespace : WatchNamespace ,
240
240
241
241
#[ command( flatten) ]
242
- pub operator_environment : OperatorEnvironmentOpts ,
242
+ pub operator_environment : OperatorEnvironmentOptions ,
243
243
244
244
#[ command( flatten) ]
245
- pub telemetry_arguments : TelemetryOptions ,
245
+ pub telemetry : TelemetryOptions ,
246
246
247
247
#[ command( flatten) ]
248
- pub cluster_info_opts : KubernetesClusterInfoOpts ,
248
+ pub cluster_info : KubernetesClusterInfoOptions ,
249
249
}
250
250
251
251
/// A path to a [`ProductConfigManager`] spec file
@@ -304,7 +304,7 @@ impl ProductConfigPath {
304
304
}
305
305
306
306
#[ derive( clap:: Parser , Debug , PartialEq , Eq ) ]
307
- pub struct OperatorEnvironmentOpts {
307
+ pub struct OperatorEnvironmentOptions {
308
308
/// The namespace the operator is running in, usually `stackable-operators`.
309
309
#[ arg( long, env) ]
310
310
pub operator_namespace : String ,
@@ -440,12 +440,12 @@ mod tests {
440
440
ProductOperatorRun {
441
441
product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
442
442
watch_namespace: WatchNamespace :: One ( "foo" . to_string( ) ) ,
443
- cluster_info_opts : KubernetesClusterInfoOpts {
443
+ cluster_info : KubernetesClusterInfoOptions {
444
444
kubernetes_cluster_domain: None ,
445
445
kubernetes_node_name: "baz" . to_string( )
446
446
} ,
447
- telemetry_arguments : Default :: default ( ) ,
448
- operator_environment: OperatorEnvironmentOpts {
447
+ telemetry : Default :: default ( ) ,
448
+ operator_environment: OperatorEnvironmentOptions {
449
449
operator_namespace: "stackable-operators" . to_string( ) ,
450
450
operator_service_name: "foo-operator" . to_string( ) ,
451
451
}
@@ -469,12 +469,12 @@ mod tests {
469
469
ProductOperatorRun {
470
470
product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
471
471
watch_namespace: WatchNamespace :: All ,
472
- cluster_info_opts : KubernetesClusterInfoOpts {
472
+ cluster_info : KubernetesClusterInfoOptions {
473
473
kubernetes_cluster_domain: None ,
474
474
kubernetes_node_name: "baz" . to_string( )
475
475
} ,
476
- telemetry_arguments : Default :: default ( ) ,
477
- operator_environment: OperatorEnvironmentOpts {
476
+ telemetry : Default :: default ( ) ,
477
+ operator_environment: OperatorEnvironmentOptions {
478
478
operator_namespace: "stackable-operators" . to_string( ) ,
479
479
operator_service_name: "foo-operator" . to_string( ) ,
480
480
}
@@ -493,12 +493,12 @@ mod tests {
493
493
ProductOperatorRun {
494
494
product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
495
495
watch_namespace: WatchNamespace :: One ( "foo" . to_string( ) ) ,
496
- cluster_info_opts : KubernetesClusterInfoOpts {
496
+ cluster_info : KubernetesClusterInfoOptions {
497
497
kubernetes_cluster_domain: None ,
498
498
kubernetes_node_name: "baz" . to_string( )
499
499
} ,
500
- telemetry_arguments : Default :: default ( ) ,
501
- operator_environment: OperatorEnvironmentOpts {
500
+ telemetry : Default :: default ( ) ,
501
+ operator_environment: OperatorEnvironmentOptions {
502
502
operator_namespace: "stackable-operators" . to_string( ) ,
503
503
operator_service_name: "foo-operator" . to_string( ) ,
504
504
}
0 commit comments