@@ -116,7 +116,7 @@ use product_config::ProductConfigManager;
116116use snafu:: { ResultExt , Snafu } ;
117117use stackable_telemetry:: tracing:: TelemetryOptions ;
118118
119- use crate :: { namespace:: WatchNamespace , utils:: cluster_info:: KubernetesClusterInfoOpts } ;
119+ use crate :: { namespace:: WatchNamespace , utils:: cluster_info:: KubernetesClusterInfoOptions } ;
120120
121121pub const AUTHOR : & str = "Stackable GmbH - info@stackable.tech" ;
122122
@@ -163,10 +163,10 @@ pub enum Command<Run: Args = ProductOperatorRun> {
163163/// Can be embedded into an extended argument set:
164164///
165165/// ```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;
167169/// use clap::Parser;
168- /// use stackable_operator::{namespace::WatchNamespace, utils::cluster_info::KubernetesClusterInfoOpts};
169- /// use stackable_telemetry::tracing::TelemetryOptions;
170170///
171171/// #[derive(clap::Parser, Debug, PartialEq, Eq)]
172172/// struct Run {
@@ -197,12 +197,12 @@ pub enum Command<Run: Args = ProductOperatorRun> {
197197/// common: ProductOperatorRun {
198198/// product_config: ProductConfigPath::from("bar".as_ref()),
199199/// 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 {
202202/// kubernetes_cluster_domain: None,
203203/// kubernetes_node_name: "baz".to_string(),
204204/// },
205- /// operator_environment: OperatorEnvironmentOpts {
205+ /// operator_environment: OperatorEnvironmentOptions {
206206/// operator_namespace: "stackable-operators".to_string(),
207207/// operator_service_name: "foo-operator".to_string(),
208208/// },
@@ -239,13 +239,13 @@ pub struct ProductOperatorRun {
239239 pub watch_namespace : WatchNamespace ,
240240
241241 #[ command( flatten) ]
242- pub operator_environment : OperatorEnvironmentOpts ,
242+ pub operator_environment : OperatorEnvironmentOptions ,
243243
244244 #[ command( flatten) ]
245- pub telemetry_arguments : TelemetryOptions ,
245+ pub telemetry : TelemetryOptions ,
246246
247247 #[ command( flatten) ]
248- pub cluster_info_opts : KubernetesClusterInfoOpts ,
248+ pub cluster_info : KubernetesClusterInfoOptions ,
249249}
250250
251251/// A path to a [`ProductConfigManager`] spec file
@@ -304,7 +304,7 @@ impl ProductConfigPath {
304304}
305305
306306#[ derive( clap:: Parser , Debug , PartialEq , Eq ) ]
307- pub struct OperatorEnvironmentOpts {
307+ pub struct OperatorEnvironmentOptions {
308308 /// The namespace the operator is running in, usually `stackable-operators`.
309309 #[ arg( long, env) ]
310310 pub operator_namespace : String ,
@@ -440,12 +440,12 @@ mod tests {
440440 ProductOperatorRun {
441441 product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
442442 watch_namespace: WatchNamespace :: One ( "foo" . to_string( ) ) ,
443- cluster_info_opts : KubernetesClusterInfoOpts {
443+ cluster_info : KubernetesClusterInfoOptions {
444444 kubernetes_cluster_domain: None ,
445445 kubernetes_node_name: "baz" . to_string( )
446446 } ,
447- telemetry_arguments : Default :: default ( ) ,
448- operator_environment: OperatorEnvironmentOpts {
447+ telemetry : Default :: default ( ) ,
448+ operator_environment: OperatorEnvironmentOptions {
449449 operator_namespace: "stackable-operators" . to_string( ) ,
450450 operator_service_name: "foo-operator" . to_string( ) ,
451451 }
@@ -469,12 +469,12 @@ mod tests {
469469 ProductOperatorRun {
470470 product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
471471 watch_namespace: WatchNamespace :: All ,
472- cluster_info_opts : KubernetesClusterInfoOpts {
472+ cluster_info : KubernetesClusterInfoOptions {
473473 kubernetes_cluster_domain: None ,
474474 kubernetes_node_name: "baz" . to_string( )
475475 } ,
476- telemetry_arguments : Default :: default ( ) ,
477- operator_environment: OperatorEnvironmentOpts {
476+ telemetry : Default :: default ( ) ,
477+ operator_environment: OperatorEnvironmentOptions {
478478 operator_namespace: "stackable-operators" . to_string( ) ,
479479 operator_service_name: "foo-operator" . to_string( ) ,
480480 }
@@ -493,12 +493,12 @@ mod tests {
493493 ProductOperatorRun {
494494 product_config: ProductConfigPath :: from( "bar" . as_ref( ) ) ,
495495 watch_namespace: WatchNamespace :: One ( "foo" . to_string( ) ) ,
496- cluster_info_opts : KubernetesClusterInfoOpts {
496+ cluster_info : KubernetesClusterInfoOptions {
497497 kubernetes_cluster_domain: None ,
498498 kubernetes_node_name: "baz" . to_string( )
499499 } ,
500- telemetry_arguments : Default :: default ( ) ,
501- operator_environment: OperatorEnvironmentOpts {
500+ telemetry : Default :: default ( ) ,
501+ operator_environment: OperatorEnvironmentOptions {
502502 operator_namespace: "stackable-operators" . to_string( ) ,
503503 operator_service_name: "foo-operator" . to_string( ) ,
504504 }
0 commit comments