Skip to content

Commit a86fff8

Browse files
committed
Fix a compile error that I missed
1 parent 1eb1b66 commit a86fff8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rust/operator-binary/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::sync::Arc;
22

33
use clap::Parser;
4+
use crd::v1alpha1::NifiClusteringBackend;
45
use futures::stream::StreamExt;
56
use stackable_operator::{
67
YamlSchema,
@@ -182,5 +183,10 @@ fn references_config_map(
182183
return false;
183184
};
184185

185-
nifi.spec.cluster_config.zookeeper_config_map_name == config_map.name_any()
186+
match &nifi.spec.cluster_config.clustering_backend {
187+
NifiClusteringBackend::ZooKeeper {
188+
zookeeper_config_map_name,
189+
} => *zookeeper_config_map_name == config_map.name_any(),
190+
NifiClusteringBackend::Kubernetes {} => false,
191+
}
186192
}

0 commit comments

Comments
 (0)