Skip to content

Commit 5dc2483

Browse files
committed
refactor: move k8s resources to controller/build/resource
1 parent 47842bb commit 5dc2483

8 files changed

Lines changed: 896 additions & 856 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Build steps that turn the [`ValidatedCluster`](super::ValidatedCluster) into
22
//! Kubernetes resource specifications.
33
4-
pub mod config_map;
5-
pub mod discovery;
64
pub mod properties;
5+
pub mod resource;

rust/operator-binary/src/controller/build/config_map.rs renamed to rust/operator-binary/src/controller/build/resource/config_map.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Assembles the rolegroup [`ConfigMap`] from the [`ValidatedCluster`], dispatching to the
2-
//! per-file builders in [`super::properties`].
2+
//! per-file builders in [`crate::controller::build::properties`].
33
44
use snafu::{ResultExt, Snafu};
55
use stackable_operator::{
@@ -9,8 +9,10 @@ use stackable_operator::{
99
v2::builder::meta::ownerreference_from_resource,
1010
};
1111

12-
use super::properties::{ConfigFileName, config_json, user_info_fetcher};
13-
use crate::controller::{OpaRoleGroupConfig, RoleGroupName, ValidatedCluster};
12+
use crate::controller::{
13+
OpaRoleGroupConfig, RoleGroupName, ValidatedCluster,
14+
build::properties::{ConfigFileName, config_json, user_info_fetcher},
15+
};
1416

1517
#[derive(Snafu, Debug)]
1618
pub enum Error {

0 commit comments

Comments
 (0)