diff --git a/charts/registry-scanner/Chart.yaml b/charts/registry-scanner/Chart.yaml index 9ec2bbf30..9c211bd09 100644 --- a/charts/registry-scanner/Chart.yaml +++ b/charts/registry-scanner/Chart.yaml @@ -4,8 +4,8 @@ description: Sysdig Registry Scanner type: application home: https://sysdiglabs.github.io/registry-scanner/ icon: https://478h5m1yrfsa3bbe262u7muv-wpengine.netdna-ssl.com/wp-content/uploads/2019/02/Shovel_600px.png -version: 1.1.16 -appVersion: 0.2.54 +version: 1.1.17 +appVersion: 0.2.56 maintainers: - name: giuse-sysdig email: giuseppe.esposito@sysdig.com diff --git a/charts/registry-scanner/README.md b/charts/registry-scanner/README.md index 7d113103c..d4d590368 100644 --- a/charts/registry-scanner/README.md +++ b/charts/registry-scanner/README.md @@ -115,6 +115,7 @@ The following table lists the configurable parameters of the Sysdig Registry Sca | scanOnStart.jobName | The name of the job created for the post-install scanner job | "registry-scanner-start-test" | | scanOnStart.asPostInstallHook | Specify whether to launch the job as a post-install helm hook.
Used for testing purpose. | false | | extraEnvVars | The additional environment variables to be set. | [] | +| memProfileToPersistentVolumeClaim | Write memory profile dumps to Persistent Volume Claim (provide PVC name) | "" | ## On-Prem Deployment @@ -126,7 +127,7 @@ Use the following command to deploy: helm upgrade --install registry-scanner \ --namespace sysdig-agent \ --create-namespace \ - --version=1.1.16 \ + --version=1.1.17 \ --set config.secureBaseURL= \ --set config.secureAPIToken= \ --set config.secureSkipTLS=true \ diff --git a/charts/registry-scanner/templates/_job.tpl b/charts/registry-scanner/templates/_job.tpl index 241d57749..a6f2bfa9e 100644 --- a/charts/registry-scanner/templates/_job.tpl +++ b/charts/registry-scanner/templates/_job.tpl @@ -38,6 +38,10 @@ - name: report-storage mountPath: "/output" {{- end }} + {{- if .Values.memProfileToPersistentVolumeClaim }} + - name: profile-storage + mountPath: "/profiling" + {{- end }} {{- if .Values.ssl.ca.certs }} - name: ca-certs mountPath: "/ca-certs" @@ -120,6 +124,10 @@ - name: GROUP_LIMIT value: "{{ .Values.config.parallelGoRoutines }}" {{- end }} + {{- if .Values.memProfileToPersistentVolumeClaim }} + - name: PROFILING_ENABLED + value: /profiling + {{- end }} {{- if .Values.extraEnvVars }} {{- toYaml .Values.extraEnvVars | nindent 10 }} {{- end }} @@ -154,4 +162,9 @@ persistentVolumeClaim: claimName: {{ .Values.reportToPersistentVolumeClaim }} {{- end }} + {{- if .Values.memProfileToPersistentVolumeClaim }} + - name: profile-storage + persistentVolumeClaim: + claimName: {{ .Values.memProfileToPersistentVolumeClaim }} + {{- end }} {{- end }} diff --git a/charts/registry-scanner/values.yaml b/charts/registry-scanner/values.yaml index 8053d2696..efc5ecbc0 100644 --- a/charts/registry-scanner/values.yaml +++ b/charts/registry-scanner/values.yaml @@ -224,3 +224,6 @@ scanOnStart: extraEnvVars: [] # - name: FOO # value: bar + +# Write memory profile dumps to Persistent Volume Claim (provide PVC name) +memProfileToPersistentVolumeClaim: ""