File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,9 +254,8 @@ impl v1alpha1::KafkaCluster {
254254 } )
255255 }
256256
257- /// List pod descriptors for a given role.
258- /// If no role is provided, pod descriptors for all roles are listed.
259- ///
257+ /// List pod descriptors for a given role and all it's groups.
258+ /// If no role is provided, pod descriptors for all roles (and all groups) are listed.
260259 /// We try to predict the pods here rather than looking at the current cluster state in order to
261260 /// avoid instance churn.
262261 pub fn pod_descriptors (
@@ -292,8 +291,7 @@ impl v1alpha1::KafkaCluster {
292291 } ;
293292
294293 // only return descriptors for selected role
295- if requested_kafka_role. is_none ( ) || & current_role == requested_kafka_role. unwrap ( )
296- {
294+ if let Some ( current_role) = requested_kafka_role {
297295 for replica in 0 ..replicas {
298296 pod_descriptors. push ( KafkaPodDescriptor {
299297 namespace : namespace. clone ( ) ,
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ pub fn build_rolegroup_config_map(
206206 } )
207207}
208208
209+ // Generate the content of both server.properties and controller.properties files.
209210fn server_properties_file (
210211 kraft_mode : bool ,
211212 role : & str ,
You can’t perform that action at this time.
0 commit comments