Skip to content

Commit b2ebb6e

Browse files
committed
fix: propagate auth volumeMounts to nifi container
1 parent c1f9133 commit b2ebb6e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

rust/operator-binary/src/controller.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,13 @@ async fn build_node_rolegroup_statefulset(
12201220
.add_volume_mount(&volume_name, NIFI_PYTHON_WORKING_DIRECTORY)
12211221
.context(AddVolumeMountSnafu)?;
12221222

1223+
authentication_config
1224+
.add_volumes_and_mounts(
1225+
&mut pod_builder,
1226+
vec![&mut container_prepare, container_nifi],
1227+
)
1228+
.context(AddAuthVolumesSnafu)?;
1229+
12231230
container_nifi
12241231
.add_volume_mounts(git_sync_resources.git_content_volume_mounts.to_owned())
12251232
.context(AddVolumeMountSnafu)?;
@@ -1293,13 +1300,6 @@ async fn build_node_rolegroup_statefulset(
12931300
}
12941301
}
12951302

1296-
authentication_config
1297-
.add_volumes_and_mounts(
1298-
&mut pod_builder,
1299-
vec![&mut container_prepare, container_nifi],
1300-
)
1301-
.context(AddAuthVolumesSnafu)?;
1302-
13031303
let metadata = ObjectMetaBuilder::new()
13041304
.with_recommended_labels(build_recommended_labels(
13051305
nifi,

0 commit comments

Comments
 (0)