From 2a8b0c4e8550ba13567e379b09180c86f9083b1c Mon Sep 17 00:00:00 2001 From: Kevin Conner Date: Wed, 21 Aug 2024 15:07:19 -0700 Subject: [PATCH] UD-1393: specify default resource values for Trivy scan --- charts/zora/README.md | 2 +- charts/zora/values.yaml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/zora/README.md b/charts/zora/README.md index 4d40bcab..73b41b60 100644 --- a/charts/zora/README.md +++ b/charts/zora/README.md @@ -114,7 +114,7 @@ The following table lists the configurable parameters of the Zora chart and thei | scan.plugins.marvin.envFrom | list | `[]` | List of sources to populate environment variables in marvin container. | | scan.plugins.trivy.ignoreUnfixed | bool | `false` | Specifies whether only fixed vulnerabilities should be reported | | scan.plugins.trivy.ignoreDescriptions | bool | `false` | Specifies whether vulnerability descriptions should be ignored | -| scan.plugins.trivy.resources | object | `{}` | [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers) to add to `trivy` container | +| scan.plugins.trivy.resources | object | `{"limits":{"cpu":"1500m","memory":"4096Mi"},"requests":{"cpu":500,"memory":"2048Mi"}}` | [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers) to add to `trivy` container | | scan.plugins.trivy.podAnnotations | object | `{}` | Annotations added to the trivy pods | | scan.plugins.trivy.image.repository | string | `"ghcr.io/undistro/trivy"` | trivy plugin image repository | | scan.plugins.trivy.image.tag | float | `0.53` | trivy plugin image tag | diff --git a/charts/zora/values.yaml b/charts/zora/values.yaml index b0e63de8..f3e35293 100644 --- a/charts/zora/values.yaml +++ b/charts/zora/values.yaml @@ -206,7 +206,13 @@ scan: # -- Specifies whether vulnerability descriptions should be ignored ignoreDescriptions: false # -- [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers) to add to `trivy` container - resources: {} + resources: + requests: + cpu: 500 + memory: 2048Mi + limits: + cpu: 1500m + memory: 4096Mi # -- Annotations added to the trivy pods podAnnotations: {} image: