Skip to content

Commit ec53b9c

Browse files
Samika KashyapSamika Kashyap
Samika Kashyap
authored and
Samika Kashyap
committed
chore: review comments
1 parent 0bdd901 commit ec53b9c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

operator/src/lgen/job.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use k8s_openapi::api::{
99
},
1010
};
1111
use kube::api::ObjectMeta;
12+
use crate::lgen::controller::LOAD_GENERATOR_JOB_NAME;
1213

1314
/// Configuration for job images.
1415
#[derive(Clone, Debug)]
@@ -142,13 +143,13 @@ pub fn job_spec(config: JobConfig) -> JobSpec {
142143
metadata: Some(ObjectMeta {
143144
labels: Some(BTreeMap::from_iter(vec![(
144145
"name".to_owned(),
145-
"load-gen-job".to_owned(),
146+
LOAD_GENERATOR_JOB_NAME.to_owned(),
146147
)])),
147148
..Default::default()
148149
}),
149150
spec: Some(PodSpec {
150151
hostname: Some("job".to_owned()),
151-
subdomain: Some("load-gen-job".to_owned()),
152+
subdomain: Some(LOAD_GENERATOR_JOB_NAME.to_owned()),
152153
containers: vec![Container {
153154
name: "job".to_owned(),
154155
image: Some(config.job_image_config.image),

operator/src/lgen/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ pub mod job;
77
/// Spec module for creating load generator specs.
88
#[cfg(feature = "controller")]
99
pub mod spec;
10+
/// Run module for running load generators.
11+
#[cfg(feature = "controller")]
12+
pub use controller::run;

operator/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async fn main() -> Result<()> {
3939
tokio::join!(
4040
keramik_operator::network::run(),
4141
keramik_operator::simulation::run(),
42-
keramik_operator::lgen::controller::run(),
42+
keramik_operator::lgen::run(),
4343
);
4444
}
4545
};

0 commit comments

Comments
 (0)