runs FOSSA poller as a Deployment instead of a long-running CronJob.#102
Merged
RobertKielty merged 1 commit intocncf:mainfrom Apr 14, 2026
Merged
Conversation
The FOSSA poller process is intentionally long-running: it performs an initial poll, then continues polling on a fixed interval. Running that binary under a CronJob causes the first Job to remain active indefinitely, and with concurrencyPolicy=Forbid that blocks all future schedules. This change replaces the CronJob-based deployment path with a singleton Deployment that matches the poller’s actual runtime behavior. It uses a Recreate strategy so image updates do not briefly run two pollers in parallel. updates the Makefile to: - add a deployment-backed fossa-poller deploy target - retire the legacy CronJob and any surviving poller Jobs during rollout - point fossa-poller-image-set at the Deployment and wait for rollout - keep the old fossa-poller-cronjob target as a deprecated alias Adds a dedicated Kubernetes Deployment manifest for maintainerd-fossa-poller with the existing secrets, service account, affinity, and explicit polling interval configuration. Signed-off-by: Robert Kielty <robert.kielty@cncf.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #101
The FOSSA poller process is intentionally long-running: it performs an
initial poll, then continues polling on a fixed interval. Running that
binary under a CronJob causes the first Job to remain active indefinitely,
and with concurrencyPolicy=Forbid that blocks all future schedules.
This change
replaces the CronJob-based deployment path with a singleton
Deployment that matches the poller’s actual runtime behavior. It uses a
Recreate strategy so image updates do not briefly run two pollers in parallel.
updates the Makefile to:
Adds a dedicated Kubernetes Deployment manifest for maintainerd-fossa-poller
with the existing secrets, service account, affinity, and explicit polling
interval configuration.