Skip to content

Commit 7a271e4

Browse files
hayk99airadier
andauthored
Feat(registry-scanner): set group limit as env var (#1414)
Co-authored-by: Alvaro Iradier <[email protected]>
1 parent ce2dad6 commit 7a271e4

File tree

6 files changed

+9
-2
lines changed

6 files changed

+9
-2
lines changed

charts/registry-scanner/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: Sysdig Registry Scanner
44
type: application
55
home: https://sysdiglabs.github.io/registry-scanner/
66
icon: https://478h5m1yrfsa3bbe262u7muv-wpengine.netdna-ssl.com/wp-content/uploads/2019/02/Shovel_600px.png
7-
version: 1.1.9
8-
appVersion: 0.2.48
7+
version: 1.1.10
8+
appVersion: 0.2.50
99
maintainers:
1010
- name: giuse-sysdig
1111

charts/registry-scanner/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ The following table lists the configurable parameters of the Sysdig Registry Sca
9191
| config.scan.jobs.resources.limits.memory | The memory limit for the scanner job. | <code>2Gi</code> |
9292
| config.scan.jobs.temporaryVolumeSizeLimit | The size limit for the emptyDir volume used by the scanner job.<br/> This volume is used to store both the vulnerability database and the image to scan. | <code>2Gi</code> |
9393
| config.useMainDbV2 | Enable vulnerability MainDB V2 | <code>false</code> |
94+
| config.parallelGoRoutines | Number of goroutines running in parallel in metadata phase for ECR Org setup. | <code>100</code> |
9495
| ssl.ca.certs | For outbound connections. <br/>List of PEM-encoded x509 certificate authority. | <code>[]</code> |
9596
| customLabels | The additional labels to add to CronJob and Scanning Jobs. The custom labels to be added to kubernetes manifests of all the resources created. | <code>{}</code> |
9697
| proxy.httpProxy | The URL of the proxy for HTTP connections. Leave it empty if not using proxy, which sets the `http_proxy` environment variable. | <code></code> |

charts/registry-scanner/templates/_job.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@
116116
{{- end }}
117117
key: registryPassword
118118
{{- end }}
119+
{{ if .Values.config.parallelGoRoutines }}
120+
- name: GROUP_LIMIT
121+
value: "{{ .Values.config.parallelGoRoutines }}"
122+
{{- end }}
119123
{{- if .Values.extraEnvVars }}
120124
{{- toYaml .Values.extraEnvVars | nindent 10 }}
121125
{{- end }}

charts/registry-scanner/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ config:
105105
temporaryVolumeSizeLimit: 2Gi
106106
# Enable vulnerability MainDB V2
107107
useMainDbV2: false
108+
# Number of goroutines running in parallel in metadata phase for ECR Org setup.
109+
parallelGoRoutines: 100
108110
ssl:
109111
ca:
110112
# For outbound connections.

0 commit comments

Comments
 (0)