Commit ec53b9c 1 parent 0bdd901 commit ec53b9c Copy full SHA for ec53b9c
File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use k8s_openapi::api::{
9
9
} ,
10
10
} ;
11
11
use kube:: api:: ObjectMeta ;
12
+ use crate :: lgen:: controller:: LOAD_GENERATOR_JOB_NAME ;
12
13
13
14
/// Configuration for job images.
14
15
#[ derive( Clone , Debug ) ]
@@ -142,13 +143,13 @@ pub fn job_spec(config: JobConfig) -> JobSpec {
142
143
metadata : Some ( ObjectMeta {
143
144
labels : Some ( BTreeMap :: from_iter ( vec ! [ (
144
145
"name" . to_owned( ) ,
145
- "load-gen-job" . to_owned( ) ,
146
+ LOAD_GENERATOR_JOB_NAME . to_owned( ) ,
146
147
) ] ) ) ,
147
148
..Default :: default ( )
148
149
} ) ,
149
150
spec : Some ( PodSpec {
150
151
hostname : Some ( "job" . to_owned ( ) ) ,
151
- subdomain : Some ( "load-gen-job" . to_owned ( ) ) ,
152
+ subdomain : Some ( LOAD_GENERATOR_JOB_NAME . to_owned ( ) ) ,
152
153
containers : vec ! [ Container {
153
154
name: "job" . to_owned( ) ,
154
155
image: Some ( config. job_image_config. image) ,
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ pub mod job;
7
7
/// Spec module for creating load generator specs.
8
8
#[ cfg( feature = "controller" ) ]
9
9
pub mod spec;
10
+ /// Run module for running load generators.
11
+ #[ cfg( feature = "controller" ) ]
12
+ pub use controller:: run;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async fn main() -> Result<()> {
39
39
tokio:: join!(
40
40
keramik_operator:: network:: run( ) ,
41
41
keramik_operator:: simulation:: run( ) ,
42
- keramik_operator:: lgen:: controller :: run( ) ,
42
+ keramik_operator:: lgen:: run( ) ,
43
43
) ;
44
44
}
45
45
} ;
You can’t perform that action at this time.
0 commit comments