@@ -521,18 +521,12 @@ impl Client {
521521 /// use tokio::time::error::Elapsed;
522522 /// use kube::runtime::watcher;
523523 /// 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};
528525 ///
529526 /// #[tokio::main]
530527 /// async fn main() {
531528 ///
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())
536530 /// .await
537531 /// .expect("Unable to construct client.");
538532 /// let watcher_config: watcher::Config =
@@ -676,15 +670,10 @@ mod tests {
676670 } ;
677671 use tokio:: time:: error:: Elapsed ;
678672
679- use crate :: utils:: cluster_info:: KubernetesClusterInfoOpts ;
680-
681673 #[ tokio:: test]
682674 #[ ignore = "Tests depending on Kubernetes are not ran by default" ]
683675 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 ( ) )
688677 . await
689678 . expect ( "KUBECONFIG variable must be configured." ) ;
690679
@@ -762,10 +751,7 @@ mod tests {
762751 #[ tokio:: test]
763752 #[ ignore = "Tests depending on Kubernetes are not ran by default" ]
764753 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 ( ) )
769755 . await
770756 . expect ( "KUBECONFIG variable must be configured." ) ;
771757
@@ -785,10 +771,7 @@ mod tests {
785771 #[ tokio:: test]
786772 #[ ignore = "Tests depending on Kubernetes are not ran by default" ]
787773 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 ( ) )
792775 . await
793776 . expect ( "KUBECONFIG variable must be configured." ) ;
794777
0 commit comments