← 输入框|github.com|刷新
Skip to content

➹ Introduce a concurrency policy option for scheduledScan CRD #275

Closed

Description

@rfelber

Is your feature request related to a problem? Please describe.

A scheduledScan should create a scan object about once per execution time of its schedule. We say "about" because there are certain circumstances where two scans might be created, or no job might be created.

In some rare cases it is possible that the scheduledScans controller starts multiple scans in parallel. This for example could lead to resource blocking if the scans couldn't be terminated correctly. In such a situation (time by time) more and more scans will be scheduled and block the cluster resources.

Describe the solution you'd like

It would be great to be able to handle such "blocking cluster resource" situation with a new configuration option for scheduledScans. In some cases it might be useful to allow multiple scan executions and in others not. The give the user more flexibility to configure the scheduledScan behavior it would help to implement a new configuration option concurrencyPolicy as already existing for K8S CronJobs.

A good description can be found here: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#concurrency-policy

Describe alternatives you've considered

Additional context

Activity

  1. added
    CRDImprovements or additions to CRDs
    on Jan 5, 2021
  2. added this to the v4.0.0 milestone on Feb 22, 2023
  3. moved this from Backlog to Todo in secureCodeBoxon Feb 22, 2023
  4. self-assigned this
    on Jun 6, 2023
  5. moved this from Todo to In Progress in secureCodeBoxon Jun 6, 2023
  6. added 4 commits that reference this issue on Jun 6, 2023
  7. modified the milestones: v4.0.0, v4.1.0 on Jun 28, 2023
  8. 4 remaining items

  9. added 8 commits that reference this issue on Jul 14, 2023
  10. added 5 commits that reference this issue on Jul 18, 2023
  11. moved this from In Progress to Done in secureCodeBoxon Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CRDImprovements or additions to CRDsHacktoberfesthttps://hacktoberfest.digitalocean.com/good first issueGood for newcomers

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions