Skip to content

Commit 2f61d4c

Browse files
committed
rvs: Reconcile images on jobs too
so that status is updated in a timely manner Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
1 parent bbd1046 commit 2f61d4c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

operator/src/reference_values.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,11 @@ async fn image_remove_reconcile(
337337

338338
pub async fn launch_rv_image_controller(client: Client) {
339339
let images: Api<ApprovedImage> = Api::default_namespaced(client.clone());
340+
let jobs: Api<Job> = Api::default_namespaced(client.clone());
341+
let wc = watcher::Config::default().labels(&format!("{JOB_LABEL_KEY}={PCR_COMMAND_NAME}"));
340342
tokio::spawn(
341343
Controller::new(images, Default::default())
344+
.owns(jobs, wc)
342345
.run(image_reconcile, controller_error_policy, Arc::new(client))
343346
.for_each(controller_info),
344347
);

0 commit comments

Comments
 (0)