File tree Expand file tree Collapse file tree
crates/stackable-operator/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -671,16 +671,11 @@ impl<'a> ClusterResources<'a> {
671671 /// * `client` - The client which is used to access Kubernetes
672672 pub async fn delete_orphaned_resources ( self , client : & Client ) -> Result < ( ) > {
673673 // We can only delete Listeners in case the "crds" feature is enabled, otherwise it's a NOP.
674- let delete_listeners = async {
675- if cfg ! ( feature = "crds" ) {
676- self . delete_orphaned_resources_of_kind :: < crate :: crd:: listener:: v1alpha1:: Listener > (
677- client,
678- )
679- . await
680- } else {
681- Ok ( ( ) )
682- }
683- } ;
674+ #[ cfg( feature = "crds" ) ]
675+ let delete_listeners = self
676+ . delete_orphaned_resources_of_kind :: < crate :: crd:: listener:: v1alpha1:: Listener > ( client) ;
677+ #[ cfg( not( feature = "crds" ) ) ]
678+ let delete_listeners = async { Ok ( ( ) ) } ;
684679
685680 tokio:: try_join!(
686681 self . delete_orphaned_resources_of_kind:: <Service >( client) ,
You can’t perform that action at this time.
0 commit comments