We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb1b66 commit a86fff8Copy full SHA for a86fff8
rust/operator-binary/src/main.rs
@@ -1,6 +1,7 @@
1
use std::sync::Arc;
2
3
use clap::Parser;
4
+use crd::v1alpha1::NifiClusteringBackend;
5
use futures::stream::StreamExt;
6
use stackable_operator::{
7
YamlSchema,
@@ -182,5 +183,10 @@ fn references_config_map(
182
183
return false;
184
};
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
+ }
192
}
0 commit comments