Skip to content

Commit ccbc432

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 f0ee3a0 commit ccbc432

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
@@ -325,8 +325,11 @@ async fn image_remove_reconcile(
325325

326326
pub async fn launch_rv_image_controller(client: Client) {
327327
let images: Api<ApprovedImage> = Api::default_namespaced(client.clone());
328+
let jobs: Api<Job> = Api::default_namespaced(client.clone());
329+
let wc = watcher::Config::default().labels(&format!("{JOB_LABEL_KEY}={PCR_COMMAND_NAME}"));
328330
tokio::spawn(
329331
Controller::new(images, Default::default())
332+
.owns(jobs, wc)
330333
.run(image_reconcile, controller_error_policy, Arc::new(client))
331334
.for_each(controller_info),
332335
);

0 commit comments

Comments
 (0)