scan

command
v0.0.0-...-b0be77f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

Schedule scans for rekor entries

This binary checks the last rekor entry updated in the database and checks it against the rekor server. If there is a new entry, it will chunk the entries that need to be updated into 50,000 that can be processed by the phren and schedule in k8s.

If there are already running phren jobs, it will not schedule any new jobs.

This is scheduled as a k8s cronjob.

The job is partitioned to process in parallel.

Documentation

Overview

This package contains the logic to update the BigQuery table and the bucket with the rekor entries. This package gets difference between the rekor entries and the BigQuery table. It then creates a k8s job to update the BigQuery table and the bucket with the rekor entries. It slices the difference into chunks of 50000 entries and creates a k8s job for each chunk.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL