@@ -521,18 +521,12 @@ impl Client {
521
521
/// use tokio::time::error::Elapsed;
522
522
/// use kube::runtime::watcher;
523
523
/// use k8s_openapi::api::core::v1::Pod;
524
- /// use stackable_operator::{
525
- /// client::{Client, initialize_operator},
526
- /// utils::cluster_info::KubernetesClusterInfoOpts
527
- /// };
524
+ /// use stackable_operator::client::{Client, initialize_operator};
528
525
///
529
526
/// #[tokio::main]
530
527
/// async fn main() {
531
528
///
532
- /// let cluster_info_cli_opts = KubernetesClusterInfoOpts {
533
- /// kubernetes_cluster_domain: None,
534
- /// };
535
- /// let client = initialize_operator(None, &cluster_info_cli_opts)
529
+ /// let client = initialize_operator(None, &Default::default())
536
530
/// .await
537
531
/// .expect("Unable to construct client.");
538
532
/// let watcher_config: watcher::Config =
@@ -676,15 +670,10 @@ mod tests {
676
670
} ;
677
671
use tokio:: time:: error:: Elapsed ;
678
672
679
- use crate :: utils:: cluster_info:: KubernetesClusterInfoOpts ;
680
-
681
673
#[ tokio:: test]
682
674
#[ ignore = "Tests depending on Kubernetes are not ran by default" ]
683
675
async fn k8s_test_wait_created ( ) {
684
- let cluster_info_cli_opts = KubernetesClusterInfoOpts {
685
- kubernetes_cluster_domain : None ,
686
- } ;
687
- let client = super :: initialize_operator ( None , & cluster_info_cli_opts)
676
+ let client = super :: initialize_operator ( None , & Default :: default ( ) )
688
677
. await
689
678
. expect ( "KUBECONFIG variable must be configured." ) ;
690
679
@@ -762,10 +751,7 @@ mod tests {
762
751
#[ tokio:: test]
763
752
#[ ignore = "Tests depending on Kubernetes are not ran by default" ]
764
753
async fn k8s_test_wait_created_timeout ( ) {
765
- let cluster_info_cli_opts = KubernetesClusterInfoOpts {
766
- kubernetes_cluster_domain : None ,
767
- } ;
768
- let client = super :: initialize_operator ( None , & cluster_info_cli_opts)
754
+ let client = super :: initialize_operator ( None , & Default :: default ( ) )
769
755
. await
770
756
. expect ( "KUBECONFIG variable must be configured." ) ;
771
757
@@ -785,10 +771,7 @@ mod tests {
785
771
#[ tokio:: test]
786
772
#[ ignore = "Tests depending on Kubernetes are not ran by default" ]
787
773
async fn k8s_test_list_with_label_selector ( ) {
788
- let cluster_info_cli_opts = KubernetesClusterInfoOpts {
789
- kubernetes_cluster_domain : None ,
790
- } ;
791
- let client = super :: initialize_operator ( None , & cluster_info_cli_opts)
774
+ let client = super :: initialize_operator ( None , & Default :: default ( ) )
792
775
. await
793
776
. expect ( "KUBECONFIG variable must be configured." ) ;
794
777
0 commit comments