Skip to content

Commit fddd879

Browse files
committed
fix repo name
1 parent 3a4dc15 commit fddd879

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

rust/operator-binary/src/config/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const STORAGE_CONTENT_ARCHIVE_UTILIZATION_FACTOR: f32 = 0.5;
5252

5353
#[derive(Debug, Display, EnumIter)]
5454
pub enum NifiRepository {
55+
#[strum(serialize = "filebased")]
56+
Filebased,
5557
#[strum(serialize = "flowfile")]
5658
Flowfile,
5759
#[strum(serialize = "database")]

rust/operator-binary/src/controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ fn get_volume_claim_templates(
15111511
} = authorization_config
15121512
{
15131513
pvcs.push(merged_config.resources.storage.file_based_repo.build_pvc(
1514-
&NifiRepository::State.repository(),
1514+
&NifiRepository::Filebased.repository(),
15151515
Some(vec!["ReadWriteOnce"]),
15161516
))
15171517
}

rust/operator-binary/src/security/authorization.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use stackable_operator::{
1111
};
1212

1313
use crate::{
14-
config::NIFI_PVC_STORAGE_DIRECTORY,
14+
config::{NIFI_PVC_STORAGE_DIRECTORY, NifiRepository},
1515
crd::{
1616
authorization::{NifiAccessPolicyProvider, NifiAuthorization, NifiOpaConfig},
1717
v1alpha1,
@@ -21,7 +21,6 @@ use crate::{
2121
const OPA_TLS_VOLUME_NAME: &str = "opa-tls";
2222
pub const OPA_TLS_MOUNT_PATH: &str = "/stackable/opa_tls";
2323

24-
const FILE_BASED_MOUNT_NAME: &str = "filebased";
2524
const FILE_BASED_MOUNT_DIRECTORY: &str = "filebased";
2625

2726
#[derive(Snafu, Debug)]
@@ -218,7 +217,7 @@ impl ResolvedNifiAuthorizationConfig {
218217
}
219218
) {
220219
volume_mounts.push(VolumeMount {
221-
name: FILE_BASED_MOUNT_NAME.into(),
220+
name: NifiRepository::Filebased.repository(),
222221
mount_path: Self::file_based_mount_path(),
223222
..VolumeMount::default()
224223
})

0 commit comments

Comments
 (0)