@@ -29,10 +29,7 @@ use stackable_operator::{
2929use strum:: { EnumDiscriminants , IntoStaticStr } ;
3030
3131use crate :: {
32- controller:: {
33- build:: { self , resource:: discovery:: build_discovery_config_map} ,
34- controller_name, operator_name, product_name,
35- } ,
32+ controller:: { build, controller_name, operator_name, product_name} ,
3633 crd:: { APP_NAME , HbaseClusterStatus , OPERATOR_NAME , v1alpha1} ,
3734} ;
3835
@@ -75,16 +72,6 @@ pub enum Error {
7572 source : stackable_operator:: cluster_resources:: Error ,
7673 } ,
7774
78- #[ snafu( display( "failed to build discovery configmap" ) ) ]
79- BuildDiscoveryConfigMap {
80- source : crate :: controller:: build:: resource:: discovery:: Error ,
81- } ,
82-
83- #[ snafu( display( "failed to apply discovery configmap" ) ) ]
84- ApplyDiscoveryConfigMap {
85- source : stackable_operator:: cluster_resources:: Error ,
86- } ,
87-
8875 #[ snafu( display( "failed to update status" ) ) ]
8976 ApplyStatus {
9077 source : stackable_operator:: client:: Error ,
@@ -210,16 +197,6 @@ pub async fn reconcile_hbase(
210197 ) ;
211198 }
212199
213- // Discovery CM will fail to build until the rest of the cluster has been deployed, so do it last
214- // so that failure won't inhibit the rest of the cluster from booting up.
215- let discovery_cm =
216- build_discovery_config_map ( & validated_cluster, & client. kubernetes_cluster_info )
217- . context ( BuildDiscoveryConfigMapSnafu ) ?;
218- cluster_resources
219- . add ( client, discovery_cm)
220- . await
221- . context ( ApplyDiscoveryConfigMapSnafu ) ?;
222-
223200 let cluster_operation_cond_builder =
224201 ClusterOperationsConditionBuilder :: new ( & hbase. spec . cluster_operation ) ;
225202
0 commit comments