Skip to content

Add config for container scanning

What does this MR do and why?

Currently, a user is unable to configure the Trivy Scanner Pod resources for Operational Container Scanning. When large images are scanned it causes the Pod to fail with OOMKilled errors.

This MR introduces configuration that enables a user to define resources for the Trivy Scanner Pod.

Related to this MR Use resource config for container scanning when... (gitlab-org/cluster-integration/gitlab-agent!949 - merged) that uses the configuration defined here to configure the Trivy Scanner Pod resources.

Please review Use resource config for container scanning when... (gitlab-org/cluster-integration/gitlab-agent!949 - merged) first before reviewing this MR.

Issue link: Allow Operational Container Scanning maximum me... (gitlab-org/gitlab#384238 - closed)

Merge request reports